c# - Suppress build warnings for generated code behind of Web Site Visual Studio project -
is there way suppress specific build warnings generated code behind of web site visual studio project?
because project web site
type project (has no project file) not possible globally suppress warnings under properties
-> build
-> suppress warnings
.
and since aspx file beingness dynamically generated/compiled, using #pragma warning disable
not possible @ all.
working solution next lurker's help:
<?xml version="1.0"?> <configuration> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="microsoft.csharp.csharpcodeprovider, system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" warninglevel="4" compileroptions="/nowarn:108,109"> <provideroption name="compilerversion" value="v4.0"/> <provideroption name="warnaserror" value="false"/> </compiler> </compilers> </system.codedom> </configuration>
there section in web.config file options suppressing warnings set. see reply here: set suppress warnings website. there links pages have specific values.
c# asp.net visual-studio msbuild web-site-project
No comments:
Post a Comment