Commented Issue: Force CompilerParameters.TreatWarningsAsErrors = false in BatchCompiler.Compile() [3873]

0 views
Skip to first unread message

sparkviewengine Issue Tracker Rss Feed

unread,
Aug 30, 2010, 4:42:02 PM8/30/10
to spar...@googlegroups.com
I don't think we need warnings in generated classes.
By default TreatWarningsAsErrors = (WarningLevel > 0).
I don't want to touch WarningLevel in my system.codedom section, and <providerOption name="WarnAsError" value="false" /> is taken into account only for Web Forms compilation.
So it will be nice to to set TreatWarningsAsErrors = false in code. Or at least read the provider <providerOption name="WarnAsError" value="false" /> (unfortunately it is internal so read is only possible via reflection).

Issue is actual only for later versions of Spark, in 1.0release compiler parameters were created via new CompilerParameters().
Comments: ** Comment from web user: tgmayfield **

Actually, depending on the warning you may have to drop it lower. Mea culpa.

URL: http://sparkviewengine.codeplex.com/workitem/3873

sparkviewengine Issue Tracker Rss Feed

unread,
Aug 30, 2010, 4:42:02 PM8/30/10
to spar...@googlegroups.com
I don't think we need warnings in generated classes.
By default TreatWarningsAsErrors = (WarningLevel > 0).
I don't want to touch WarningLevel in my system.codedom section, and <providerOption name="WarnAsError" value="false" /> is taken into account only for Web Forms compilation.
So it will be nice to to set TreatWarningsAsErrors = false in code. Or at least read the provider <providerOption name="WarnAsError" value="false" /> (unfortunately it is internal so read is only possible via reflection).

Issue is actual only for later versions of Spark, in 1.0release compiler parameters were created via new CompilerParameters().
Comments: ** Comment from web user: tgmayfield **

Note to people getting these errors: Check your web.config system.codedom section for warningLevel="4", which equates to telling the compiler to treat all warnings as errors. Drop it down to 3.

URL: http://sparkviewengine.codeplex.com/workitem/3873

Reply all
Reply to author
Forward
0 new messages