473,566 Members | 2,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6383

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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: ppp-217-133-157-235.cust-adsl.tiscali.it
217.133.157.235
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1738 44
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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
38712
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 as a few properties and methods that I do not want to provide any XML comments for. This generates errors like this:
0
518
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 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...
3
12399
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 missing debugging information for referencing module; linking object as if no debug info --- I'd like to suppress these warnings and therefor I tried...
1
4731
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 show in the report details section: A 1 2
6
6970
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. So within this sql file there are various SELECT * FROM myFunction(); which sends output to the user from cron. I can't see anyway to suppress this...
1
5382
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 statement of my batch file. Since I assume that this slows down the whole process I would like to know if there is a way to suppress that echo and...
2
4918
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 = "SELECT FY99Info.MDName, FY99Info.MgrName, FY99Info.firstname, FY99Info.lastname, FY99Info.grade FROM FY99Info WHERE left(FY99Info.orgcode,5) = '" &...
5
2871
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 System.Windows.Forms.KeyEventArgs) Handles txtPrivate.KeyDown 'IF CTRL WAS PRESSED If e.Control Then 'IF "I" WAS PRESSED TOO If e.KeyCode = Keys.i Then If...
5
18913
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 line 0 PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'zlib' already loaded in Unknown on line 0
0
7673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7893
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.