|
-
Mar 18th, 2003, 11:07 AM
#1
Thread Starter
Hyperactive Member
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?
-
Mar 18th, 2003, 01:31 PM
#2
Sleep mode
-
Mar 19th, 2003, 12:05 PM
#3
Member
GO to project properties-Common Properties - Build and change Option Trict default
-
Mar 19th, 2003, 12:09 PM
#4
Sleep mode
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 ??
-
Mar 19th, 2003, 12:10 PM
#5
Thread Starter
Hyperactive Member
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.
-
Mar 19th, 2003, 12:19 PM
#6
Sleep mode
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.
-
Mar 19th, 2003, 01:19 PM
#7
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|