dotnet-run: add page (#11020)

* Add dotnet run

* add version

* Fix

* Update pages/common/dotnet-run.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/23/head
Jack Lin 2023-10-16 22:29:02 +08:00 committed by GitHub
parent c3dcf797fc
commit 89a0296de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# 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 {{path/to/file.csproj}}`
- Run the project with specific arguments:
`dotnet run -- {{arg1=foo arg2=bar ...}}`
- Run the project using a target framework moniker:
`dotnet run --framework {{net7.0}}`
- Specify architecture and OS, available since .NET 6 (Don't use `--runtime` with these options):
`dotnet run --arch {{x86|x64|arm|arm64}} --os {{win|win7|osx|linux|ios|android}}`