Options (2)
-f, --frameworkbooleanRun the project using a target framework moniker
Example:
dotnet run {{[-f|--framework]}} {{net7.0}}-a, --archbooleanSpecify architecture and OS, available since .NET 6 (Don't use `--runtime` with these options)
Example:
dotnet run {{[-a|--arch]}} {{x86|x64|arm|arm64}} --os {{win|win7|osx|linux|ios|android}}Examples (5)
Run the project in the current directory
Run a specific project
dotnet run --project path/to/file.csprojRun the project with specific arguments
dotnet run -- arg1=foo arg2=bar ...Run the project using a target framework moniker
dotnet run [-f|--framework] net7.0Specify architecture and OS, available since .NET 6 (Don't use `--runtime` with these options)
dotnet run [-a|--arch] x86|x64|arm|arm64 --os win|win7|osx|linux|ios|androidmade by @shridhargupta | data from tldr-pages