dn 1.0.0

dotnet tool install --global dn --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 dn --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dn&version=1.0.0
                    
nuke :add-package dn --version 1.0.0
                    

dn

Run a file-based C# app with SDK discovery rooted at the app file.

dn is distributed as a Native AOT tool for Windows, Linux, and macOS on x64 and Arm64.

Install

dotnet tool install --global dn

Usage

dn file.cs arg0 arg1

This is equivalent to:

dotnet run --file file.cs -- arg0 arg1

All arguments after the file path are passed to the app verbatim.

dn starts dotnet from the directory containing the app so SDK resolution, including the search for global.json, starts there. The app itself keeps the directory from which dn was invoked as its working directory.

Starting the installed dn tool does not use the .NET runtime or consult global.json in the caller's directory. Only the dotnet process that dn starts for the file-based app performs SDK resolution.

For example, when invoked as:

cd /x
dn /y/file.cs

SDK resolution and implicit build-file discovery start from /y, while Environment.CurrentDirectory in the app is /x.

Requires a .NET 10 or later SDK with file-based app support.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 112 8/17/2026
0.0.4 188 1/10/2025
0.0.3 120 1/10/2025
0.0.2 124 1/10/2025
0.0.1 127 1/8/2025