的ClickOnce不会安装.NET 4.5

编程入门 行业动态 更新时间:2024-10-10 06:13:43
本文介绍了的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 framework 4.0 in the past. First I just updated the target platform to 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 framework 4 to framework 4.5. Then 4.5 was installed during deployment.

更多推荐

的ClickOnce不会安装.NET 4.5

本文发布于:2023-11-13 03:14:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583266.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ClickOnce   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!