-
Notifications
You must be signed in to change notification settings - Fork 15
Migration *.cs File Cause Visual Studio Warning CS1591 When XML Doc Enabled #120
Comments
Just noticed this too. Should add after namespace but before class declaration in both the migration and it's partial class (in EF core). |
I am annoyed by this too. Unfortunately devs do not seem to be wanting to implement this simple fix: dotnet/efcore#10695 |
I dont understand the actual reason behind not wanting to implement this. |
Well a Workaround would be to wrap
(not tested) |
If you have your migrations in their own project, you can solve this with a <RuleSet Name="Migrations" ToolsVersion="15.0">
<Rules AnalyzerId="Roslynator.CSharp.Analyzers" RuleNamespace="Roslynator.CSharp.Analyzers">
<Rule Id="CS1591" Action="None" />
</Rules>
</RuleSet> |
Condition
Issue
*.cs migrations files cause Visual Studio to output warnings for rule CS1591 (Missing XML comment for publicly visible type or member 'Type_or_Member').
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1591
Solutions
Generate *.cs migration files should be prepended with:
The text was updated successfully, but these errors were encountered: