本文介绍了无法在Visual Studio 2015中选择Target Framework 4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经卸载了我的localized(german).net版本,以获取英语异常消息。之后,我在Windows 10开发计算机上安装了最新的.NET 4.6.2框架。然后,我开放了我的解决方案,其中包含针对.NET Framework 4.5的项目,并注意到由于未安装此版本,因此无法再加载它们。然后Visual Studio建议使用其他版本,并在以后进行更改。

I have uninstalled my localized(german) .net version to get english exception messages. Afterwards i've installed the latest .NET 4.6.2 framework on my windows 10 development pc. Then i've openend my solution which contains projects that target .NET Framework 4.5 and noticed that they couldn't be loaded anymore because this version is not installed. Then visual studio suggested to use a different version and change it later.

完成后,我无法更改为所需的框架版本,如您在此处看到的那样:

When i've done it i couldn't change to the desired framework version as you can see here:

我尝试重新安装.NET 4.5,但Windows 10不支持它,因此安装被取消(即使修复选项也不起作用) 。如果我正确理解了.NET框架的最新版本,则是较低版本的就地更新,因此它们包括它们,并且我应该可以将它们定位为目标。

I've tried to reinstall .NET 4.5 but it's not supported on windows 10 so the installation is cancelled(even repair option doesn't work). If i've understood it correctly newer versions of the .NET framework are in-place updates of lower versions, so they include them and i should be able to target them.

那么为什么无法实现目标以及.NET 4.5?

So why is it not possible and what else can i do to target .NET 4.5?

推荐答案

目标是.Net Framework 4.5在Visual Studio 2012、2013、2015版中可用。如果看不到它,请打开桌面控制面板-> 程序&功能找到条目带有更新的Visual Studio 2015 ,选择修改/修复来修复Visual Studio。

Targeting .Net Framework 4.5 is available in Visual Studio version 2012, 2013, 2015. If you can't see it, open desktop control panel->program & features find the entry Visual Studio 2015 with Updates, select Modify/Repair to repair the Visual Studio.

这篇关于无法在Visual Studio 2015中选择Target Framework 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 06:33