Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change target framework in VB.NET console app

I created a VB Console app and it defaulted to .NET 4 but I need it to be .NET 3.5. I've been looking but all the references I find say to change it on the 'Compile' tab in properties but I don't have a compile tab or anything else that lets me change the target framework.

Any ideas other than recreating the project?

Note: I'm using VS2010 Ultimate

Update: added screen shot

enter image description here

like image 623
Dustin Davis Avatar asked Aug 18 '11 17:08

Dustin Davis


People also ask

How do I change my target framework to .NET standard?

In Visual Studio select Analyze and then Portability Analyzer Settings. In the General Settings window, select . NET Standard 2.0 under Target Platforms, and then choose OK.

How do I change my target platform in Visual Studio?

On the menu bar, choose Build > Configuration Manager. In the Active solution platform list, choose a platform for the solution to target, and then choose the Close button.


2 Answers

Are you sure you are right clicking the project, then clicking Properties? For me in the properties window there is a Compile tab on the left side (under Application), and there is an option to change the target under Advanced Compile Options....

like image 106
jli Avatar answered Nov 12 '22 02:11

jli


In vs2010 you goto PROJECT ---> SLN Name properties --> COMPILE ---> ADVANCED COMPILE OPTIONS(BOTTOM). Now Reverting it to 3.5 is something that as far as I know is something you can't do, atleast not easily or advised. Obviously upgrading from say a 2.0 to a 3.5 or 4.0 framework is easy as the step's above. Your best bet is unfortunately to create a new project in the 3.5 framework.

like image 24
hi.im.new Avatar answered Nov 12 '22 02:11

hi.im.new