Why can't I find this in the options?
Isn't there an option to turn Option Strict on by default like in the VB Express edition or am I stuck typing this at the head of every page?
Printable View
Why can't I find this in the options?
Isn't there an option to turn Option Strict on by default like in the VB Express edition or am I stuck typing this at the head of every page?
No there isn't. You could either write a Visual Studio add-in that does this, or, go into the templates used by VS 2005 itself and edit it there. I found my templates at
C:\Program Files\Microsoft Visual Studio 8\VB\VBWizards
I don't know where VWD would put its templates.
That's what I feared. Thanks mendhak.
There is compilation element that you can put in the web.config file.Quote:
or am I stuck typing this at the head of every page?
<compilation debug="false" strict="true" explicit="true" />
Thanks bruce! I'll give it a shot.
I did fix this up in the template but am curious about the web.config. I'm clearly doing something wrong. I have option strict set to true in my web.config but I can't get it to do anything. Option Strict at the top of the page works fine, but not in the web config. I can get away with implicit conversions.
My element looks like this:
<compilation debug="false" strict="true" explicit="true" />
What could I be missing?