Visual Basic 9 (VB9) .Net Framework Version Targetting

Visual Studio 2008 supports targetting different versions of the .Net framework. In previous versions you had to use the version of Visual Studio which corresponded to the version of the .Net framework you are targetting (e.g. VS2002 = .net 1.0, VS2003 = .net 1.1, and VS2005 = .Net 2.0). VS2008 will let you target any of .net 2.0, .net 3.0, or .net 3.5.


With this in mind I decided to upgrade one of my big VB.Net projects from a VS2005 solution to VS2008 so I could start leveraging some of the new functionality. Unfortunately trying to figure out where the framework targetting selection for VB9 is was not particuarly obvious.


This functionality is right on the Application tab of the project settings in a C# project. Visual Basic on the other hand has done a pretty good job burying it. The setting is inside the properties of your project under Compile>Advanced Compile Options. It’s the last dropdown – “Target framework (all configurations)”.


Share this post: email it! | digg it! | bookmark it! | live it!

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>