无法在 Visual Studio 2015 中选择 Target Framework 4.5 [英] Cannot select Target Framework 4.5 in Visual Studio 2015

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

问题描述

我已经卸载了我的本地化(德语).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.

下载:

Microsoft .NET Framework 4.6.2 是一个高度兼容、就地更新到 Microsoft .NET Framework 4/4.5/4.5.1/4.5.2/4.6/4.6.1.

The Microsoft .NET Framework 4.6.2 is a highly compatible, in-place update to the Microsoft .NET Framework 4/4.5/4.5.1/4.5.2/4.6/4.6.1.

那么为什么不可能,我还能做些什么来定位 .NET 4.5?

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

推荐答案

Targeting .Net Framework 4.5 在 Visual Studio 版本 2012、2013、2015 中可用.如果看不到,请打开桌面控制面板->程序 &features 找到条目Visual Studio 2015 with Updates,选择Modify/Repair修复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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆