4.5时已安装了.NET Framework 4.0不安装 [英] .NET Framework 4.0 does not install when 4.5 is already installed

查看:1095
本文介绍了4.5时已安装了.NET Framework 4.0不安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2012的 WPF 项目需要(至少) .NET框架4.0。 我已经安装了4.5,但人们使用Windows  XP无法安装应用程序(因为4.5不能在Windows&NBSP运行,XP)。 我使用的ClickOnce 作为部署应用程序。

I use Visual Studio 2012 for a WPF project needing (at least) .NET Framework 4.0. I have 4.5 already installed, but people with Windows XP cannot install the application (because 4.5 does not run on Windows XP). I use ClickOnce as the deployment application.

当我尝试intall 4.0版本,我得到的错误(来自荷兰翻译所以英文版本可能会有些不同):

When I try to intall version 4.0, I get the error (translated from Dutch so the English version might be a bit different):

同样还是.NET Framework 4的更高版本已在此计算机上安装

The same or a higher version of .NET Framework 4 is already installed on this computer

我该如何解决这个问题?

How can I fix this?

推荐答案

.NET 4.5是一个附加在.NET 4.0中的 CLR ,正因为如此,当您安装.NET 4.5,它包括了4.0。有当它是一台机器具有.NET 4.5上生成的已知问题的ClickOnce安装。

.NET 4.5 is an add-on to .NET 4.0 in terms of the CLR, and as such, when you install .NET 4.5, it includes 4.0. There is a known issue with ClickOnce when it is generated on a machine that has .NET 4.5 installed.

的Visual Studio 2012更新1应该解决这个问题。

Visual Studio 2012 Update 1 is supposed to fix this issue.

您可以设置的.NET Framework版本里面的Visual Studio .NET应用程序。当你要发布的Windows  XP兼容的版本,你应该总是选择.NET 4或更低作为目标框架

You can set the .NET framework version for your .NET applications inside Visual Studio. When you want to publish a Windows XP compatible version, you should always select .NET 4 or lower as the target framework.

在.NET 4.0框架应列并排4.5。

The .NET 4.0 Framework should be listed side by side with 4.5.

这是一个正常安装Windows 8的计算机时,Visual Studio 2012旗舰版上,而无需安装任何其他的框架或SDK。

This is on a normally installed Windows 8 machine, Visual Studio 2012 Ultimate, without having to install any other framework or SDK.

这篇关于4.5时已安装了.NET Framework 4.0不安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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