This is a template repository with github actions for .NET nuget packages creation and publishing
- Rename ExampleSolution to your solution name (ExampleSolution => MyPackageSolution)
- Delete project and add your projects or rename existing projects(ExampleProject => MyPackage). If your IDE does not support folders renaming, you also need to rename folders manually.
- Change properties in Directory.Build.props file according to your needs (version, package tags, repository url)
- Fix dotnet-version in .github/workflows/*.yml
Mark This is a pre-release checkbox when you create a release.
The package version will be <proj_version>-tags-<tag_name> where proj_version is retrieved from .csproj or Directory.Build.props file.
If you want to publish README on Nuget add this in package csproj file
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
Package description
dotnet add package ExampleProject
Usage description
TODO
Package description
dotnet add package ExampleProject.SecondPackage
Usage description
TODO
To contribute, you will need to setup your local environment, see prerequisites. For the contribution and workflow guide, see package development lifecycle.
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- .NET (.net version) - Download & Install .NET.
- Implement package logic in
src
- Add or adapt unit-tests (prefer before and simultaneously with coding) in
tests
- Add or change the documentation as needed
- Open pull request in the correct branch. Target the project's
master
branch