c# - How to disable a particular compiler warning for a particular file -
background
I am working on a small coding project that is being sold to other companies is . I need to create some documents for this, so I decided to use the rendcast after taking a long time to download and install, I was working in the end, and seen in any public law or class There was no comment in it, in which it was written that the comment was unavailable. I then helped in the speed of my comment to install Ghostdoc. It triggered compiler warnings to get XML comments missing, which was great because now I had a list of everything I needed to comment on.
The problem
One of my code files is an automatically generated file, which contains 3000 compiler warnings. I should be able to leave that file from creating "missing XML comment" compiler warnings. I know these things from the post:
- I know that I can stop the compiler warning for the project, but there are other files in this project which should be compiler warning.
- I know that I can use the
#pragma alert disabled 1591 to remove the compiler warning, but the file is automatically generated, and I actually do it Do not want to add manually every time.
- I know that I can add an empty comment, but once again, I really do not want to add it again every time the file is rebuilt.
- I can drag the file into my project because it is only the name of the square, then remove the need for XML comment, but I do not want the customer to deal with the other DLL.
- Classes are partial classes so I was trying to find a way to disable #pragma warning in partial organs, but even if this is possible, then warnings occur there. .
"post-text" itemprop = " text">If the generated classes are not visible to your users, then you can check that generation The tool has the option of generating classes internally instead of the public.
If your generated code is a web service reference, you have the option of specifying when you create a reference (in the "Add Reference Reference" dialog, access level for Advanced -> Generated classes ).
Otherwise, you can try to have a way to change the access level of type in the Generated Generally Generated Code for f.
Comments
Post a Comment