I opened up the property pages for the project and clicked on the "Build" tab, but the Option Strict checkbox is not there.
Is there anyway I can turn off/on Option Strict since the property page option is not there? (I don't want to change it manually on every page).
Thanks,
Scott LeeYou can turn on Option Strict globally for your application in web.config. Set the Strict attribute of the compilation element to true:
<configuration>
<system.web>
<compilation>
<compilation strict="true|false" />
</compilation>
<system.web>
</configuration>
Excellent! Thanks!
WOW! this is a good post! I have been struggling for it!
Thanks any way!
But my comment is, surprisingly the documentation showing going to Tools --> Options and changing option only, there is no mention of configuring using web.config way!
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbalr/html/5883e0c1-a920-4274-8e46-b0ff047eaee5.htm
So documentation has to be changed for this!
0 comments:
Post a Comment