Read The Fastest NuGet Package Ever Published (Probably) for a full walk through guide with screenshots on how you can create a brand new project using this template and get a NuGet package published in a couple of minutes.
The NuGet package project template uses dotnet new
to enable you to turn features of the project template on or off. Find out more about dotnet new
here.
- Framework (Default=net5.0) - The target framework for the project.
- Nullable (Default=On) - Enables C# 8 nullable reference types.
- Sign (Default=On) - Signs the NuGet package.
- Title - The name of the project which determines the assembly product name.
- Description - A description of the project which determines the assembly description.
- Author - The name of the author of the project which determines the assembly author and copyright information.
- Tags - A semi-colon
;
delimited list of tags for the NuGet package. - Contact - The contact details to use if someone wants to contact you about a security vulnerability or code of conduct issues.
- Comments (Default=On) - Require all members to be commented.
- ReadMe (Default=On) - Add a README.md markdown file describing the project.
- EditorConfig (Default=On) - Add a .editorconfig file to set a fixed code style.
- License - The legal license applied to the source code in this project.
- MIT (Default) - The MIT license.
- None - No license, the source code cannot be legally shared.
- AnalysisMode - The selection of code analysis rules to enable.
- Default (Default) - Enables the default minimum set of code analysis rules.
- AllEnabledByDefault - Enables all code analysis rules.
- AllDisabledByDefault - Disables all code analysis rules.
- ImplicitUsings (Default=On) - Enables implicit using statements in all projects which adds some default System.* namespaces.
- IsTrimmable (Default=Off) - Enables the library for trimming which reduces the size of applications by removing unused code.
- TreatWarningsAsErrors (Default=On) - Treat warnings as errors.
- StyleCop (Default=On) - Adds and enforces StyleCop analysers.
- Tests (Default=On) - Adds a unit test project.
- SourceControl - Select which source control provider you are using if any, to add provider specific features.
- GitHub (Default) - Adds source link, .github directory containing a code of conduct, contributing guide, pull request template and issue templates.
- None - No source control provider is being used.
- GitHubUsername - Your GitHub username or organisation name that the project lives under.
- GitHubProject - The name of your GitHub project.
- GitHubActions (Default=On) - Adds GitHub Actions continuous integration, automatic release drafting and CodeQL security scanning.
- AppVeyor (Default=Off) - Adds AppVeyor continuous integration build file
appveyor.yml
. - AzurePipelines (Default=Off) - Adds Azure Pipelines continuous integration build file
azure-pipelines.yml
.
- Sign - The package is signed. However, you should change the .snk file.
- SourceLink - During debugging, you can step into code from your NuGet package using Source Link.
- Install the latest .NET Core SDK.
- Run
dotnet new --install Boxed.Templates
to install the project templates.
- Select .NET Boxed from the project type drop down.
- Select the .NET Boxed template you want to install and follow the instructions.
- Choose a project template i.e.
api
,graphql
,nuget
,orleans
. - Run
dotnet new api --help
to see how to select the feature of the project. - Run
dotnet new api --name "MyProject"
along with any other custom options to create a project from the template.
You can find release notes for each version here and a To-Do list of new features and enhancements coming soon in the projects tab.
Please view the Contributing guide for more information.