From 89a0296de41e42d51524a2a3d277ef9c98e8445d Mon Sep 17 00:00:00 2001 From: Jack Lin Date: Mon, 16 Oct 2023 22:29:02 +0800 Subject: [PATCH] dotnet-run: add page (#11020) * Add dotnet run * add version * Fix * Update pages/common/dotnet-run.md Co-authored-by: K.B.Dharun Krishna --------- Co-authored-by: K.B.Dharun Krishna --- pages/common/dotnet-run.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/dotnet-run.md diff --git a/pages/common/dotnet-run.md b/pages/common/dotnet-run.md new file mode 100644 index 000000000..a2e32018d --- /dev/null +++ b/pages/common/dotnet-run.md @@ -0,0 +1,24 @@ +# dotnet run + +> Run a .NET application without explicit compile or launch commands. +> More information: . + +- 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}}`