Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the .Net Framework from version 3.5 to version 4.0

Tags:

I have created a class library in .NET Framework 3.5. Now I want to change the .NET Framework Version to 4.0.

How can I do this?

like image 497
Running Rabbit Avatar asked Jun 04 '12 07:06

Running Rabbit


People also ask

Can I upgrade my .NET Framework?

NET Framework, you can generally upgrade it to . NET Framework 4.5 and its point releases (4.5.

Do I need NET Framework 3.5 if I have 4?

So to answer your question you only need both if your application uses features from both or altenatively you have separate web applications that use . NET 3.5 and . NET 4.0.

Do I have Microsoft Net Framework 4 installed?

Use Registry EditorIn the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey isn't present, then you don't have .NET Framework 4.5 or later installed.


1 Answers

In Visual Studio:

  1. Right-click on your project
  2. Select Properties
  3. Select the Application tab
  4. Change the Target Framework to the desired framework

If you are not seeing .NET Framework 4 as an option there, ensure you have it installed.

EDIT

I don't think this is what you're asking, but for completeness, one can also point an existing DLL to a later version of the .NET Framework without recompiling using Binding Redirects.

like image 100
Eric J. Avatar answered Oct 14 '22 00:10

Eric J.