我尝试部署使用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
发布评论