Results 1 to 7 of 7

Thread: Option Strict

  1. #1

    Thread Starter
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394

    Option Strict

    Option Strict can be set on from the project Properties form, however is it possible to set Option Strict as On as the default for all new projects?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Option Strict

    I don't think so !

  3. #3
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    GO to project properties-Common Properties - Build and change Option Trict default
    Iouri Boutchkine

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Iouri
    GO to project properties-Common Properties - Build and change Option Trict default
    I know about this , Can you make it default for all new projs ??

  5. #5

    Thread Starter
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    GO to project properties-Common Properties - Build and change Option Trict default
    Which is fine for that project, but I want to set it so that all future projects default to Option Strict On.

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I've not tried this in .NET .
    In VS6 I can build empty proj with my own settings and save it under templates folder . Whenever I wanted to build proj with specific settings , it just shows in the template projs . I think , Template Wizard is flexible to do that.

  7. #7
    Member
    Join Date
    Sep 2002
    Posts
    37
    Hi

    The only way I know to do this is to change the Project Template.
    For a WindowsApplication this is located in

    c:\Program Files\Microsoft Visual Studio.NET\VB7\VBWizards\WindowsApplication\Templates\1033\WindowsApplication.vbproj.

    Modify the file as follows:

    <VisualStudioProject>
    <VisualBasic>
    <Build>
    <Settings>
    OptionExplicit = "On"
    OptionStrict = "On"

    This should set Option Strict as On as Default.

    Hope this helps

    Harold Hoffman

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