的ClickOnce不会安装.NET 4.5 [英] ClickOnce won't install .NET 4.5

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

问题描述

我尝试部署使用ClickOnce一个WPF应用程序。
该项目的目标框架是:.NET框架4.5
。 在VS项目属性 - >发布 - >prerequisites我已签两个项目:

I’m trying to deploy a WPF application using ClickOnce.
The project’s target framework is: ".NET Framework 4.5".
In the VS project properties -> "Publish" -> "Prerequisites" I have checked two items:

  • 的Microsoft .NET Framework 4.5(x86和x64)
  • 在Windows安装程序4.5

当我尝试推出的Windows 7计算机上运行此应用程序不具有.NET 4.5 preinstalled我得到一个弹出说:

When I try to launch this application on a Windows 7 computer that doesn’t have .NET 4.5 preinstalled I get a popup saying:

安装不会尝试下载/安装框架,对我来说。它只是放弃显示此消息。 运行的ClickOnce安装客户端用户拥有计算机的管理员权限。

The installation does not attempt to download/install the framework for me. It simply gives up displaying this message. The client user running the ClickOnce installation has administrator privileges on the machine.

为什么没有的ClickOnce安装自动.NET 4.5?

Why doesn’t ClickOnce install .NET 4.5 automatically?

推荐答案

我有同样的问题被设定为目标的.NET Framework 4.0,在过去的应用程序。首先,我刚刚更新了目标平台的.NET Framework 4.5,但是的ClickOnce安装程序没有更新其prerequisites。

I had the same problem with an application that was set to target .net framework 4.0 in the past. First I just updated the target platform to .net framework 4.5, however the ClickOnce installer did not update its prerequisites.

我所要做的就是项目属性 - >发布 - > prerequisites - >更改从.NET框架4到.NET框架4.5。那么4.5是在部署过程中安装。

What I had to do was Project Properties -> Publish -> Prerequisites -> Change from .net framework 4 to .net framework 4.5. Then 4.5 was installed during deployment.

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

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