generated from kritikos-io/templates-dotnet
5e9b6ab9de1f31eb994ba9101eea20aa7b64a2f4
Templates - Dotnet
A starting point for new .NET projects, based on opinionated rules.
- In order to be able to update your repository with the latest changes, you can use the following command after creating your repo:
git remote add template https://github.com/kritikos-io/templates-dotnet
git fetch --all
git merge template/main --allow-unrelated-histories
- Do this as soon as possible, as the unrelated histories flag will lead to a few conflicts that you will need to resolve manually.
- Afterwards, you can pull future changes using
git pull template main
- Rename the solution and project files, replacing 'Solution' to match your project name.
- Solution.sln
- Solution.sln.DotSettings
- Solution.code-workspace
Keep in mind that until the dotnet toolset handles generating new projects correctly, you will need to edit new csproj files and remove Version attributes from PackageReference entries. For more details consult Central Package Management.
Provided props files allow compiled models with EF Core 9+, to use them install
Microsoft.EntityFrameworkCore.Taskson all projects containing DbContext classes. (Not yet suited for production use, consult Entity Framework Core MSBuild integration).
Description
Languages
JSON
100%