Reduce MVC project from Framework 4.5 to 4.0

Is there a specific way to downgrade the solution to a lower version of the .NET Framework.

+5
source share
3 answers

First try setting up the .NET Framework 4.0 in your solution.

Right-click on your project-> Properties-> Application Panel. You should see it there. After setting the target structure, you must compile and process all possible scripts related to the framework.

+6
source

In Visual Studio, you must set the target as Framework 4.0 (msdn) . And then fix the errors for any code manually that relies on 4.5

+1
source

Nuget, 4.5, , 4

Update the packages first and this will change many packages using the PM> update-package command

You can remove packages using PM> uninstall-package packageName -force

Install the package back using PM> install-package packageName

You can verify that all of your nuget packages are 4.0 by looking at the file packages.configat the root of each project.

+1
source

All Articles