I have an Database project in my application and want to suppress the errors/warnings thrown by this project. .first of all is it possible ?
I think I was not clear with my question, by suppressing I meant that when I build my Solution, the errors(which actually are not errors) are shown in the error list, I just want that all Database project related errors should not be shown in the error list.
I am using VS2010.
thanks in advance
You can suppress violations in code using a preprocessor directive, the #pragma warning (C#) or Disable (Visual Basic) directive to suppress the warning for only a specific line of code. Or, you can use the SuppressMessage attribute.
To display the Error List, choose View > Error List, or press Ctrl+\+E.
To surppress a specific warning, go to project properties -> Build.
Type in the warning numbers (i.e. without 'SQL') in comma delimited format in field "Suppress Transact-SQL warnings:".
Select the file in the project:
example: projectDatabase\ddl\table_name.sql
on the Properties Window of the file set
Build Action : None.
While building it doesn't look in this files for errors or warnings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With