Every .NET Standard Class Library can be packaged as a nuget package through dotnet pack. All information is stored directly inside the csproj file.
It took me some time to figure out how to specify the version for the package.
Probably the easiest way is to embed it directly inside the csproj file by setting the version property:
As I preferred to update the package version through my build pipeline, I didn’t like this approach. Fortunately a good alternative is to use the PackageVersion parameter when executing the dotnet pack command:
dotnet pack -p:PackageVersion=1.1.0
This is a lot easier to embed in your build…