|
-
Aug 9th, 2007, 04:20 PM
#1
Thread Starter
Registered User
[RESOLVED] [2005] VWD Express - Default to Option Strict
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?
-
Aug 10th, 2007, 07:33 AM
#2
Re: [2005] VWD Express - Default to Option Strict
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.
-
Aug 10th, 2007, 08:29 AM
#3
Thread Starter
Registered User
Re: [2005] VWD Express - Default to Option Strict
That's what I feared. Thanks mendhak.
-
Aug 10th, 2007, 12:31 PM
#4
Re: [RESOLVED] [2005] VWD Express - Default to Option Strict
or am I stuck typing this at the head of every page?
There is compilation element that you can put in the web.config file.
<compilation debug="false" strict="true" explicit="true" />
-
Aug 10th, 2007, 12:45 PM
#5
Thread Starter
Registered User
Re: [RESOLVED] [2005] VWD Express - Default to Option Strict
Thanks bruce! I'll give it a shot.
-
Aug 12th, 2007, 08:01 PM
#6
Thread Starter
Registered User
Re: [RESOLVED] [2005] VWD Express - Default to Option Strict
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?
Last edited by nmadd; Aug 12th, 2007 at 08:22 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|