Member-only story
New .NET solution templates for class library packages
About this new project
I like to build my software systems in a nicely broken down set of libraries that are easy to maintain, test and deploy based on the Principles Of Successful Package Management. But every time I or the teams I work with need to start a new library or reusable component, we have to scramble so much from other projects, I felt this good fill the gap.
So I’ve started to create a bunch of dotnet new
templates to quickly get you started building high-quality libraries including everything you need to publish it on NuGet or make it available as open-source.
It includes:
- Multi-targeting to cover as many .NET frameworks as possible
- Code coverage using Coverlet and Coveralls.io
- Static code analysis using Roslyn analyzers StyleCopAnalyzers, Roslynator, CSharpGuidelinesAnalyzer and Meziantou.
- Auto-formatting using
.editorconfig
and settings honored by JetBrains Rider and ReSharper - A Nuke C# build script that you can run locally as well as in your CI/CD pipeline
- A GitHub Actions workflow that builds, tests, packages and publishes your library
- An extensive read-me