-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
https://tedspence.com/publishing-a-dotnet-tool-on-nuget-e1df7909ec5a
- .NET Tool packages - The recommended approach for CLI tools. These are installed globally or locally using dotnet tool install. They automatically add the tool to PATH and handle versioning well. You specify true in your .csproj.
- Regular packages with tools folder - You can include executables in the tools folder of a NuGet package. This is the older approach but still used.
- Build-integrated packages - Packages that copy binaries to the output directory during build.
Many popular CLI tools are distributed via NuGet:
- Entity Framework Core tools (dotnet-ef)
- Various code generators
- Build and deployment tools
- Development utilities
For a .NET CLI tool specifically, the .NET Tool format is definitely the modern standard and provides the best user experience. Users can install with:
dotnet tool install -g YourToolName
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request