-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use correct product version in SPC in servicing #110980
base: main
Are you sure you want to change the base?
Conversation
I noticed we missed to port the version changes from dotnet#108899 (review) to main. This does that so we embed the correct version number into System.Private.CoreLib even during servicing. I simplified the source generator to pass the ProductVersion msbuild property into the compilation instead of using reflection on the generator assembly.
Tagging subscribers to this area: @dotnet/area-system-runtime |
We now always have the stabilized product version.
@@ -196,17 +196,10 @@ public void VerifyFrameworkDescriptionContainsCorrectVersion() | |||
return; | |||
|
|||
Assert.DoesNotContain("+", version); // no git hash | |||
Assert.DoesNotContain("-", version); // no preview suffix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was possible to identify preview or private builds from the FrameworkDescription string before this change. This feature has been useful for diagnostics. Should this feature be preserved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkotas yeah, we seem to have other tests that make that assumption too so it was easier to restore that behavior.
I noticed we missed to port the version changes from #108899 (review) to main. This does that so we embed the correct version number for
FrameworkDescription
into System.Private.CoreLib even during servicing when using the stabilized version.I simplified the source generator to pass the InformationalVersion msbuild property into the compilation instead of using reflection on the generator assembly.