How to change the Target Framework Version for a Visual Basic Project

Today I received the following warning message from Visual Studio while adding a reference in a Visual Basic project:

image

The Target Framework version for the project ‘XXXX’ is higher than the current Target Framework version. 
Would you like to add this reference to your project anyway?

This warning message makes complete sense since the Visual Basic project I was working on is targeting the .NET Framework 2.0 and the project that was being referenced targeted the .NET Framework 3.5.  The only issue was that I was not able to figure out how to change the Target Framework Version in a Visual Basic project.

In a C# project it is pretty easy; right-click on the project and choose properties and in the Application tab (vertical tab) you will see the Target Framework dropdown box:

image

But in Visual Basic it is hidden.  Here is where I found how to change the Target Framework version after searching for a bit:

Right-click on the project and choose properties and then select the Compile tab (vertical tab).
image

At the bottom of the Project > Compile tab you will find an Advanced Compile Options… button.
image

In this dialog called the Advanced Compiler Settings is where you will find how to change the Target Framework version for Visual Basic.

image



Published 29 December 2009 03:05 PM by Jeff Widmer

Comments

# Upload Amatuer Videos said on 04 March, 2010 01:35 AM

yeah.. amazing style ))

# Greg Hill said on 19 August, 2010 04:55 AM

Thanks very much for this. Had me stumped.

# Adrian said on 08 February, 2011 08:55 AM

great thanks -had no idea how to go from .net4 to 2 until reading this

# Dominic Maratt said on 03 May, 2011 09:44 AM

I found this very useful - Thanks a lot!

# Gregori said on 27 February, 2012 01:36 PM

Thanks! It solved my problem...

# Rob said on 15 May, 2012 11:33 PM

Saved me a lot of time. thanks.

# Maria said on 19 October, 2012 02:02 AM

Hey! Thanks a lot. It worked for me.

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication