|
-
Jan 11th, 2008, 04:51 PM
#1
Thread Starter
New Member
[2005] simple - option strict
hey. i'm a boring old c# developer, and I'm planning to convert a bunch of code from vb .net to c#. I was told to enable option explicit and option strict beforehand. i haven't really touched vb since 6.0. Is there an easy way that I can do this project-wide?
thanks,
me
-
Jan 11th, 2008, 04:53 PM
#2
Frenzied Member
Re: [2005] simple - option strict
Project > [Project Name] Options > Compile > Compile Options -> Option Strict
-
Jan 11th, 2008, 04:56 PM
#3
Re: [2005] simple - option strict
In Visual Studio:
Tools -> Options.
Projects and Solutions -> VB Defaults
It says there "Default Project Settings". Set Option Explicit and Option Strict to true.
Then whenever you start a VB.NET program, they'll be turned on.
If you want to change it on a project by project basis, right-click the project and select properties. It will bring up a page called 'My Project". This has a tab called "Compile" that allows you to set these on a project level basis.
-
Jan 11th, 2008, 04:58 PM
#4
Thread Starter
New Member
Re: [2005] simple - option strict
thanks... i see that for one of the projects. the other one is a "website", and doesn't seem to have this anywhere. ?
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
|