-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Why are my files built with an extra number in the File Version? #724
Comments
The 14864 is not random. It is the first 15 bits of the git commit hash, and can be useful when all you have is the file version to determine which commit produced the file. Specifically with the Since the file version doesn't appear in any user-visible locations in an app or package version, I wonder if you see this value as sufficient to justify this number being present. It tends to be well-liked by others. |
Thanks for the quick response. I see where knowing the commit would be We do show the version on our web application so clients and QA can easily let us know exactly what version they are using if an issue arises. The 4th integer is no big deal, but we are migrating from subversion to Git and we are trying to keep the migration as transparent as possible for everyone but the developers. I was hoping the 4th digit was optional and could be excluded. |
The thing is AssemblyInformationalVersion isn't always available. Crash dumps always make file version available but AssemblyInformationalVersion may not even be represented in them. There is no option to suppress the 4th integer from File Version. But ultimately everything is customizable via msbuild. One target generates all the msbuild properties and another target uses them to generate the assembly atttributes. If you define your own target that runs in between these two (use MSBuild's |
I am building a release version of a NuGet package and the resulting File version of the assemblies is {major}.{minor}.{height}.14864, where
14864 is random. I am building with .NET build and .NET pack using the /p:PublicRelease=true.
Where is the 14864 coming from and how do I get rid of it?
Below is my version.json file:
The text was updated successfully, but these errors were encountered: