This is my personal, opinionated template for new .NET projects.
The project layout is inspired by the .NET Project Structure gist.
- Explicit
global.json
,nuget.config
Directory.Build.props
andtests/Directory.Build.props
for cross-project configuration
This project uses GitVersion in Mainline mode. Using the MSBuild Task. GitVersion will also be installed by Cake to display Version in the Setup phase
WARNING:
GitFlow: If you use GitFlow then make sure run
.\tools\dotnet-gitversion.exe init
or./tools/dotnet-gitversion init
and update theGitVersion.yaml
accordinglyMainline: Do not set the
next-version
property in mainline mode. Usegit tag
instead to pin versions
Run init.ps1
to rename solution and remove sample code
.\init.ps1 -SolutionName SolutionName