-
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
Fix a number of source generator bugs. #87796
Fix a number of source generator bugs. #87796
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsThis PR:
|
dd867e9
to
7029e02
Compare
// Compile the referenced assembly first. | ||
Compilation campaignCompilation = CompilationHelper.CreateCampaignSummaryViewModelCompilation(); | ||
Compilation eventCompilation = CompilationHelper.CreateActiveOrUpcomingEventCompilation(); | ||
// Compile the referenced assembly first. |
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.
These diffs fix a couple of tests that were actually failing to compile but we weren't checking for that. Discovered by the newly added diagnostics.
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.
Thanks
This PR:
JsonSerializerContext
attribute parsing implementation from reading from syntax trees to reading from symbols. Fixes System.Text.Json using interpolated string with JsonSerializable.TypeInfoPropertyName fails with ArgumentException #69207. Fixes SourceGen build errors if JsonSerializableAttribute argument name 'type' is included #82997.JsonConverterAttribute
annotations contain invalid or inaccessible converter types. Fixes Emit a diagnostic when encountering JsonConverterAttribute annotations with inaccessible converter type constructors. #87140.