re:
It would only be bad if you couldn't modify the VS templates.
To change the default value of Option Strict, follow these steps:
Locate WebApplication.vbproj, inside:
drive:\VStudioInstallDir\Common7\IDE\ProjectTemplates\VisualBasic\Web\1033\WebApplicationProject.zip
Extract it, modify the Option Strict line so it's On, save the file
and add it back to the zip file, overwriting the original file.
Notice thre's other files in the same zip file where the option must be set, too.
Also, do the same for any file in:
drive:\VStudioInstallDir\Common7\IDE\ProjectTemplates\VisualBasic\Web
which has Option Strict = Off
I agree that the IDE is buggy regarding the setting of this option,
but there's a viable workaround, as detailed in this post.
btw, if you want to change the Option Strict option for other types of projects
( Windows app, Windows Service, etc. ), you'll need to do the same for *their* templates.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
C. Moya said:
Did you try this answer before offering it? My settings are already set to this. I then created a
new class in my web project (thinking it's only applied to new files added) and was able to add
Dim i As Integer = "some text"
with no problem.
That's bad.