-
Notifications
You must be signed in to change notification settings - Fork 9
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
NrtRevisionFormat no longer works as expected with VS2022 v17.8.3 #27
Comments
I will have to take a look after upgrading to VS 17.8 myself. I was going to explore .NET 8 a bit but not so soon. At least they already have a few point releases out so the biggest issues should be fixed by now. Maybe the new SDK comes with other variables/properties in MSBuild that need to be used now. |
Appreciate the reply. No rush -- like I said, I was able to truncate the value as a work-around. I can confirm that it's definitely something with the update. I just upgraded my secondary dev machine and it I got the exact same results. Edit: I just realized my initial post had the example buggy output wrong. I had part of it duplicated on accident and I've corrected it. |
Experiencing this since installing .net8 on system, despite building for .net6 at the moment. Happens in Windows or Linux build environments with .net8 installed. I'm using JetBrains Rider, fwiw.
Previously (and currently on system without .net8 sdk installed) would get the expected version based on the git tag, such as Now I get:
i.e. the hash is added. |
Seems to be new in .NET 8.0 linked to the SourceLink features... .NET 8.0 - What's new: https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8#source-link Workaround/Fix found here: dotnet/sdk#34568 (comment) tl;dr: <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> You could add this line below here:
|
This change: Thank you very much! |
Just upgraded to VS2022 v17.8.3 and have discovered that my NrtRevisionFormat has stopped working as expected.
For example:
The expected result is something like
However, I'm now seeing the expected result followed by the full hash. For example:
More specifically, this is "ProductVersion." The FileVersion property is just the base (1.0.1234) without the hash.
This has worked great for years and nothing else has changed aside from the VS update. For now, I'm manually truncating the value myself, which works but feels broken.
Any thoughts?
The text was updated successfully, but these errors were encountered: