Downgrading ASP.NET MVC 5 from .NET 4.5 to 4.0

后端 未结 1 1582
星月不相逢
星月不相逢 2021-01-14 02:28

Sitting with an interesting problem. .NET 4.5 is not supported on the server (client didn\'t mention this)

BUT the app is written using ASP.NET MVC 5 (which only run

相关标签:
1条回答
  • 2021-01-14 03:00

    Try these steps:

    1. Right click on the project in the Solution Explorer (in Visual Studio) and select Properties.
    2. Change the Target Framework drop-down to whatever framework you now wish to target.
    3. Do the same for any other projects or test projects in the solution, that you also wish to change the target framework for.
    4. Manually edit the .csproj file in a text editor and replace all "net45" strings to "net40"
    5. In visual Studio, click the Tools menu and select Library Package Manager > Manage NuGet Packages for Solution
    6. Click on Updates
    7. Update all Microsoft packages
    8. Click Restart Now.
    9. Rebuild project.
    0 讨论(0)
提交回复
热议问题