tags:

views:

155

answers:

1

I code with treat warnings as errors turned on and XML Documentation turned on. I have a Typed Dataset which generates 500+ warnings which are treated as errors. I can not control this code as it is auto generated by MSDataSetGenerator.

Is their a way to turn off warnings just for the dataset files?

Turning XML Documentation off is not an option for me as other classes are in the project.

Turning off treat warnings as errors will enable it to build. But any warnings generated by other code in the same project will be impossible to find and will be missed.

+1  A: 

Hello,

Please read this:

http://msdn.microsoft.com/en-us/library/441722ys(VS.80).aspx

Of course, you would have to add the list of warnings to ignore each time the custom tool that generates the dataset's code executes...

HTH

Colby Africa

Colby Africa
Not an options for the reason you pointed out. It is rebuilt each time the code is compiled.
trampster
How about moving your datasets into another assembly and ignore warnings from that project altogether?
Colby Africa
I had considered moving it to its own project but was hoping for a better solution :(
trampster
There are some upsides to this. If you are developing a system with a complex data access layer, it makes a lot of sense to decouple this from the application layers. On the other hand, if you are developing a complex DAL, strongly typed datasets might not be the right choice...
Colby Africa