473,411 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

can I suppress CS1591 in selected files?

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!
Nov 15 '05 #1
1 6361

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" <fu***@iol.it>
| 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: <#m**************@TK2MSFTNGP12.phx.gbl>
| 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!TK2MSFTN GP12.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!
|
|
|

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Dee | last post by:
I use XML comments around most of my class libraries public property and methods, for example: /// <summary> /// blah blah /// </summary> However I have a few dozen public constants as well...
0
by: Dan | last post by:
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...
3
by: Philipp Staempfli | last post by:
Hello I have a project which includes different libraries. When I compile the project, I get a huge amount of the following linker warnings: --- warning LNK4204: "C:\...\Debug\vc70.pdb' is...
1
by: Eych | last post by:
I have a field which I do not want to put in the Group Header, but keep in the Details section. I selected 'Suppress if duplicated', but it still duplicates. Here's an example: What I want to...
6
by: Ron St-Pierre | last post by:
Is there a way 'within' psql to suppress output? One of our cron scripts calls a sql file which contains various database commands (ALTER TABLEs, UPDATEs, etc) and various user-defined functions....
1
by: matthias | last post by:
I have to execute fairly large batch files (200-300MB) with several million INSERT commands. When I do that from pgsql using the \i switch, I get the echo INSERT 0 1 for every single insert...
2
by: pmarisole | last post by:
I am trying to write a report that displays a hierarchy such as: Director, Manager, Employee I want to suppress the repeating Director, Manager for the employees. This is my code: sSQL =...
5
by: papalarge | last post by:
I've noticed that Ctrl+i creates a Tab, whereas I'd like to make it italicize instead. My code is as follows Private Sub txtPrivate_KeyDown(ByVal sender As System.Object, ByVal e As...
5
by: Franz Von Bayros | last post by:
Hello all. I have some PHP scripts run by cron that email me all day for no good reason. The scripts are outputting warnings like: PHP Warning: Module 'mysql' already loaded in Unknown on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.