Wednesday, June 08, 2005 11:13 AM szurgot

VS 2005... Now Validates VB in ASP.NET

As much as I dislike working in VB.NET (too verbose, allows too many shortcuts like untyped variables), I'm stuck working in it because I've got a "legacy" web site that was built in VB.NET 1.0... I recently upgraded it to 2.0, and it now creates warnings for several shortcuts (Implicit conversions and the like) This is allowing me to cleanup the code and make it more consistent for parameter usage and whatnot.

And the other nice thing is that for Code-behind(beside?) pages, it'll only do it if the page is open, so I don't suddenly have 1000s of errors cluttering up the project. (I didn't build the project, just maintaining it... I fix everything i come across <grin>)

Filed under:

Comments

# re: VS 2005... Now Validates VB in ASP.NET

Wednesday, June 08, 2005 1:38 PM by Chris McKenzie

You can easily disable implicit conversion by setting Option Strict On at the project level in 1.0 / 1.1. They had to allow for that option as a legacy code-support issue because previous versions of Visual Basic required loose-typing in certain situations.

Good luck!