User1323951843 posted
I have a VS2010 Solution with two projects, a Web site and Assembly. For the assembly, I can right click on the solution and set these option under the Compilation tab. There appears to be no equivalent for the Web sites
I have found conflicting advice on the Internet, however the option that parses is to set these options in the Web.config file e.g
<compilationdefaultLanguage="vb"debug="true"targetFramework="4.0"strict="true"explicit="true">
However, there are two problems:
1) You cannot set the Infer or Compare options
2) Even though I have set the compilation line as above, the Web code is
not being compiled with "option strict on". If I subsequently add the line "option strict on" into the code, the APSX file shows the errors.
I want to GLOBALLY force strict on for the compilation of all code.
Advice appreciated.
Paul