tldr/pages.zh_TW/common/dotnet.md

22 lines
522 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# dotnet
> 適用於 .NET Core 的跨平台 .NET 命令列工具。
> 此命令也有關於其子命令的文件,例如:`dotnet build`.
> 更多資訊:<https://learn.microsoft.com/dotnet/core/tools/>.
- 初始化一個新的 .NET 專案:
`dotnet new {{模板名稱}}`
- 還原 NuGet 套件:
`dotnet restore`
- 在當前目錄中構建並執行 .NET 項目:
`dotnet run`
- 運行 .NET 應用程式(只需要執行環境,其餘命令需要 .NET Core SDK:
`dotnet {{路徑/到/應用程式.dll}}`