Publishing NuGet packages
With our solution, we also have libraries that are used by client applications. Having NuGet packages helps with using these libraries. By creating a GitHub action, we can automatically build and publish the NuGet package. If you want to make a package publicly available, you can publish it to the NuGet server (you’ve already used packages that are available for this book). To make packages private with authentication, GitHub offers GitHub Packages.
Preparing the library project
Adding some metadata, such as a README Markdown file to the project describing the package, and a custom icon to replace the default icon, enhances usability.
The Codebreaker.GameAPIs.KiotaClient
project contains a readme.md
file and a JPG file for an icon. These additions need to be uploaded within the project file:
Codebreaker.GameAPIs.KioataClient/Codebreaker.GameAPIs.KiotaClient.csproj
<ItemGroup> <None Include...