dotnet run
Run a .NET application without explicit compile or launch commands. More information: https://learn.microsoft.com/dotnet/core/tools/dotnet-run.
- Run the project in the current directory:
dotnet run
- Run a specific project:
dotnet run --project
- Run the project with specific arguments:
dotnet run --
- Run the project using a target framework moniker:
dotnet run
- Specify architecture and OS, available since .NET 6 (Don't use
--runtimewith these options):
dotnet run --os
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
