Results 1 to 6 of 6

Thread: [RESOLVED] [2005] VWD Express - Default to Option Strict

  1. #1

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Resolved [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?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [2005] VWD Express - Default to Option Strict

    That's what I feared. Thanks mendhak.

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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" />

  5. #5

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: [RESOLVED] [2005] VWD Express - Default to Option Strict

    Thanks bruce! I'll give it a shot.

  6. #6

    Thread Starter
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    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
  •  



Click Here to Expand Forum to Full Width