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?
Printable View
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?
I don't think so !
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 ??Quote:
Originally posted by Iouri
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.Quote:
GO to project properties-Common Properties - Build and change Option Trict default
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.
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