I like to have clean, "0 warnings" - projects in C#. This includes my project having XML comments for every public property and class.
Now I use entity framework with migrations (code first). The migrations are created by using "Add-Migration" which cause automatic code to be generated in the Migrations folder (standard behavior). I might want/need to modify these classes a bit but do not want to add Comments for the public classes created there.
I know I can disable the warnings using #pragma disable
but again do not want to have to do this for every Migration-class.
So: Is there a possibility to use #pragma disable
(or something similar) on a complete folder or namespace?
I do NOT want to use something like GhostDoc as a workaround.
To suppress warnings for generated code in a project
Reference: How to: Suppress Code Analysis Warnings for Generated Code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With