LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dotnet-run

build and execute .NET projects

TLDR

Run current project
$ dotnet run
copy
Run with arguments
$ dotnet run -- [arg1] [arg2]
copy
Run specific project
$ dotnet run --project [path/to/project.csproj]
copy
Run in Release configuration
$ dotnet run -c Release
copy
Run without building
$ dotnet run --no-build
copy
Run specific framework
$ dotnet run -f [net8.0]
copy

SYNOPSIS

dotnet run [options] [-- args]

DESCRIPTION

dotnet run builds and executes a .NET project in one step. It's the standard way to run applications during development without creating deployment artifacts.The double-dash separates dotnet options from arguments passed to the application. Launch profiles in launchSettings.json can configure environment variables and arguments for development scenarios.For web applications, dotnet run starts the development server with hot reload support in newer versions.

PARAMETERS

--project PATH

Project to run.
-c, --configuration CONFIG
Build configuration.
-f, --framework FRAMEWORK
Target framework.
--no-build
Run without building first.
--no-restore
Skip package restore.
--launch-profile NAME
Launch profile to use from launchSettings.json.
--no-launch-profile
Do not use any launch profile.
--arch ARCH
Target architecture (e.g., x86, x64, arm64).
-- ARGS
Arguments to pass to application.
--help
Display help information.

CONFIGURATION

Properties/launchSettings.json

Configures launch profiles with environment variables and application arguments.

INSTALL

sudo dnf install dotnet-host
copy
sudo pacman -S dotnet-host
copy
sudo apk add dotnet-host
copy
brew install dotnet
copy

CAVEATS

Includes build time in execution. Use --no-build for faster iteration. Launch profiles only work from project directory. Not intended for production use.

HISTORY

dotnet run is part of the .NET CLI providing streamlined development iteration. It combines build and execution, improving developer experience over separate compile-then-run workflows.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid