How to set version metadata?
See original GitHub issue- I want to use the
VersionPrefix
property inside mycsproj
to define my package’s semver 2.0 (3-part) version. - I want to attach a 4th part and build metadata on the command line.
In other words, I want to have the version be, e.g. “1.2.3.4+f0c432”
Where 1.2.3
is stored in the csproj
and .4
comes from the CI environment
and +40c432
is the commit hash.
The problem I’ve run into is that using --version-suffix
automatically makes it a pre-release version, which I don’t want.
Even if I ignore the 4th number (build number), I can’t even do this:
dotnet build MyProj --version-suffix "+f0c432"
Because:
/usr/local/share/dotnet/sdk/2.2.107/NuGet.targets(114,5): error : '1.2.3-+f0c432' is not a valid version string
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How do you keep your metadata under version control?
Another solution is to export all metadata tables in text format (like XML), and then version those text files. But then you have...
Read more >Configure the instance metadata options
Instance metadata options allow you to configure new or existing instances to do the following: Require the use of IMDSv2 when requesting instance...
Read more >Diagnose Version Metadata (Data Management)—ArcGIS Pro
Only the geodatabase administrator can run the Diagnose Version Metadata tool. This tool is usually run at the direction of Esri Technical Support....
Read more >for managing versioning of document sets i have to add ...
I wanted to make a Document management system for my self with using document set because each document No related to 2 or...
Read more >1.15. Metadata versioning
Users can select the type of metadata which needs to be created. Metadata Version type governs how the importer should treat the given...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@TheBoneJarmer you can set the exact version with
dotnet pack -p:Version="[EXACT_FULL_VERSION]"
what’s annoying here @jasonkarns is that the
-p:
//p:
is not, like, part of thenuget pack
command, but just a “catchall” saying “just pass in anything else to the low level msbuild command”. Sure, that’s what all of this is doing.But the version stuff should be a more “1st class” citizen of the
dotnet pack
command, IMO.I’ll go and open a new issue to see if the team could consider adding this.