can I suppress CS1591 in selected files?

D

Dan

In a VS.NET 2003 project automatically generating the XML documentation on
build I have some .CS files which lack comments as they are automatically
created by tools (such as strongly typed DataSet classes). In such cases I
get tons of CS1591 warnings (Missing XML comment for publicly visible type
or member): I'd like to know if it is possible to suppress these ONLY for
some selected files in a project without changing the global project
settings (something like the C++ #pragma directive, for instance...), as I
found the warning useful when related to my own code.

Thanx guys!
 
J

Jeffrey Tan[MSFT]

Hi Dan,

What you need is to pass something like /nowarn:1591 to the c# compiler in
order to disable these warnings.
You can achieve this using csc.exe at the command line.

Hope this helps.

Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Dan" <[email protected]>
| Subject: can I suppress CS1591 in selected files?
| Date: Sun, 3 Aug 2003 18:19:11 +0200
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: ppp-217-133-157-235.cust-adsl.tiscali.it
217.133.157.235
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:173844
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| In a VS.NET 2003 project automatically generating the XML documentation on
| build I have some .CS files which lack comments as they are automatically
| created by tools (such as strongly typed DataSet classes). In such cases I
| get tons of CS1591 warnings (Missing XML comment for publicly visible type
| or member): I'd like to know if it is possible to suppress these ONLY for
| some selected files in a project without changing the global project
| settings (something like the C++ #pragma directive, for instance...), as I
| found the warning useful when related to my own code.
|
| Thanx guys!
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top