I want to downgrade one of our application which is currently targeted to .net framework 4.6.1 to lower version 4.5.2. This application has many dependent projects and several libs installed with Nuget. Below are the steps I followed to downgrade.
- Converted each project of application and all dependent projects to target 4.5.2
Run following command to uninstall and reinstall all dependent packages from Nuget.
Update-Package -Reinstall
This step is not required but to be sure, i deleted packages folder and then allowed Visual Studio to download it again when i built the solution.
After all the above steps when i publish the site or create a build with TFS and deploy it to IIS and run it i get below error.
.NET Runtime version : 4.0.30319.36373 - This application could not be started.This application requires one of the following versions of the .NET Framework:
.NETFramework,Version=v4.6
Do you want to install this .NET Framework version now?