Read VersionPrefix instead of Version
This is a nice little tool, thanks for making it.
I was wondering if it would be possible to read <VersionPrefix> instead of <Version> as an option?
When I run dotnet pack I use the --version-suffix flag to set the prerelease / ci value of my version to $(Build_BuildNumber) and that means I need my csproj to store <VersionPrefix> instead of <Version> so the two values can be merged.
Ex)
csproj
<PropertyGroup> <VersionPrefix>1.0.0</VersionPrefix> </PropertyGroup>
with the following
dotnet pack App/App.csproj -c Release --version-suffix ci-$(Build_BuildNumber) --no-build --no-restore
Produces something like
App.1.0.0-ci-231423.nupkg