I like to use the build number or some other computed version number in my CICD pipeline for NuGet packages. Essentially, I like the developer to control the major and minor version numbers but increment the build automatically.
With the nuget.exe I could use the -Version switch to override the version in the final package. However with a .NET Core 2.0 library project this fails, and I have to use dotnet pack, see:
https://github.com/NuGet/Home/issues/4491
The is only a --version-prefix CLI argument for dotnet pack so how do I override the version completely?