dotnet-run-default 1.0.0

dotnet tool install --global dotnet-run-default --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local dotnet-run-default --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-run-default&version=1.0.0
                    
nuke :add-package dotnet-run-default --version 1.0.0
                    

run-default

run-default runs the project marked DefaultStartup in a .slnx solution, matching Visual Studio's startup-project behavior.

This will be unecessary once dotnet/sdk #55139 (dotnet run can use the .slnx DefaultStartup property) is implemented.

Requirements

run-default targets .NET 10. Install a compatible .NET SDK or runtime before using it.

Install from NuGet.org

dotnet tool install --global dotnet-run-default

Update an existing installation:

dotnet tool update --global dotnet-run-default

Install locally

Build the tool package:

dotnet pack -c Release

In a repository where you want to use it, create a local tool manifest if needed and install from the package output:

dotnet new tool-manifest
dotnet tool install --local --add-source <path-to-dotnet-run-default>\src\bin\Release dotnet-run-default

Use

Mark a project as the default startup project in the .slnx file:

<Project Path="src/MyApp/MyApp.csproj" DefaultStartup="true" />

From a directory containing exactly one .slnx file:

dotnet run-default

Or pass the solution explicitly:

dotnet run-default .\MySolution.slnx

Additional arguments are forwarded to dotnet run:

dotnet run-default .\MySolution.slnx --configuration Release
dotnet run-default -- --my-app-option

Publishing

Pushing a tag in the form v<version> publishes that version to NuGet.org through the Publish NuGet package GitHub Actions workflow. Before the first release, configure NuGet Trusted Publishing for this repository and the GitHub release environment as described in the workflow's comments.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 140 7/27/2026