-
Notifications
You must be signed in to change notification settings - Fork 466
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
ResxSourceGenerator: Added XML comment summary to the generated classes and properties to avoid warning CS1591 if they are public #7366
base: main
Are you sure you want to change the base?
Conversation
…s to avoid warning CS1591 in AbstractResxGenerator.cs
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7366 +/- ##
=======================================
Coverage 96.50% 96.50%
=======================================
Files 1450 1450
Lines 347435 347455 +20
Branches 11413 11413
=======================================
+ Hits 335297 335317 +20
- Misses 9245 9246 +1
+ Partials 2893 2892 -1 |
Duplicate was created in pull request #7479. |
Closes issue #7478. |
I would generally prefer to not make this change in the current form, since the comments here aren't particularly helpful. I would expect the comments here to be derived from one of the following:
I generally recommend disabling CS1591 among a couple others, although this strategy won't work for all users: roslyn-analyzers/Directory.Build.props Lines 37 to 45 in 5435ba7
|
Indeed, when you activate the |
If there is a straightforward way to disable Generate the resource classes as internal is not always a solution either, e.g. because of the issue dotnet/runtime/issues/110073. But of course, making the XML comment more descriptive is a legit point. |
…ription as the classic ResXFileCodeGenerator uses.
@sharwell I updated the pull request with more descriptive XML comments, which I took from the classic ResXFileCodeGenerator. |
If the classes generated by the ResxSourceGenerator are public, the warning CS1591 has been emitted, since the XML comments were missing.
Fixes #7478