This is my personal, opinionated template for new .NET projects.
- Explicit
global.json,nuget.config Directory.Build.propsandtests/Directory.Build.propsfor cross-project configurationDirectory.Packages.propswith [CPM}(https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management) disabled, because the .NET templates do not play well with CPM, yet. Turn on CPM once you have established the .NET projects.
The Cake.cs Script is prepared for XUnit v3 with MTP enabled.
You need to install following additional extension packages for the build script:
- Microsoft.Testing.Extensions.CodeCoverage
- Microsoft.Testing.Extensions.TrxReport
This project comes with Nerdbank.GitVersioning for automatic versioning.
Run init.ps1 to rename solution and remove sample code
.\init.ps1 -Name SolutionName