Template project to quickly spin up a C# Class Library project.
- Sample solution with a class library project and a matching xUnit test project.
- The class library is ready to be packaged and published as a NuGet package.
- Placeholders for README, LICENSE (MIT), and RELEASE-NOTES.
- Pre-configured
.gitignoreand.editorconfigfiles. - Ready-to-use GitHub Actions workflow for building, testing and releasing the library to NuGet.
Install (or update) the package from NuGet to make the template available:
$ dotnet new install Ddth.Templates.ClasslibAfter the package is installed, create a new solution using the template:
$ dotnet new clt -n MyLibThe above command will create a new solution named MyLib in the current directory.
Happy coding!
After creating your solution, remember to:
- Update the package metadata (
PackageId,Authors,Description, etc.) in the project file. - Fill in
README.md,LICENSE.md, andRELEASE-NOTES.md. - Configure the GitHub Actions workflow secrets (e.g. the NuGet API key) for releasing.
🌟 If you find this project useful, please star it. 🌟
This template is licensed under the MIT License - see the LICENSE.md file for details.
Feel free to create pull requests or issues to report bugs or suggest new features.
Please create PRs against the
contrib_wait_to_mergebranch.