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

查看:111
本文介绍了无法在 Visual Studio 2015 中选择目标框架 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?

推荐答案

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

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