-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOWTO dotnet core nuget versioning #45
Comments
Those are not environment variables, they are MSBuild variables determined during the build. Here's one way to do it. The
|
The link is dead. Can you please provide a fresh minimal example? |
The link refers to the Version.targets in the moq project build: https://github.com/moq/moq/blob/master/src/build/Version.targets |
@feliwir the key is that you cannot assign those properties statically in a |
GitInfo is correctly versioning our assemblies but I would like to extend this to versioning our nuget packages. The following is a snippet from our .csproj :
Note the
GeneratePackageOnBuild
.What do I have to do to generate those environment variables,
$(GitSemVerMajor)
, etc. when I calldotnet build
?The text was updated successfully, but these errors were encountered: