-
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
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.
...untime/tests/System.Runtime.InteropServices.RuntimeInformation.Tests/DescriptionNameTests.cs
Outdated
Show resolved
Hide resolved
context.RegisterPostInitializationOutput(ctx => | ||
{ | ||
string? informationalVersion = typeof(ProductVersionInfoGenerator).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion; | ||
var informationalVersionProvider = context.AnalyzerConfigOptionsProvider.Select((options, _) => |
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.
var informationalVersionProvider = context.AnalyzerConfigOptionsProvider.Select((options, _) => | |
string informationalVersionProvider = context.AnalyzerConfigOptionsProvider.Select((options, _) => |
Nit: Repo coding conventions
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.
This is not a string but Roslyn's IncrementalValueProvider<T>
: https://github.com/dotnet/roslyn/blob/main/docs%2Ffeatures%2Fincremental-generators.md#incrementalvaluesprovidert
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.
ah sorry, I missed that this was about the coding conventions: #110997
Follow-up from dotnet#110980
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.