防止 ClickOnce 应用程序中的自动更新 [英] prevent automatic Update in ClickOnce Application

查看:33
本文介绍了防止 ClickOnce 应用程序中的自动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ApplicationDeployment 类开发我的更新函数来调节自身.在项目设置 -> 发布 -> 应用程序更新中,我提供了我的更新路径并禁用了所有复选框.现在,当我启动我的应用程序时,总是会安装更新,即使服务器使用的是旧版本.为了防止安装自动关闭更新,我应该根据 Microsoft 关闭部署清单中的订阅更新.我已经这样做了,但是每次启动我的应用程序时都会自动更新.如何防止这种自动更新?

I'm develop my update functions with the class ApplicationDeployment to regulate itself. In the project settings -> Publish-> Application Updates I've given my update path and disables all check boxes. Now when I start my application is always installed an update, even if the server is on an older version. To prevent that automatically shut updates are installed, I should turn off according to Microsoft, the subscription updates in the deployment manifest. I have do it but the automatic updates came everytime when I start my App. How can I prevent this automatic Update?

推荐答案

我相信应用程序只会在版本号更改时更新,因此取消选中该框以在每次发布时自动更新版本号

I believe the application only updates if the Version Number changes, so uncheck the box to automatically update the version number on each publish

  • 右键单击项目"并进入属性"
  • 点击发布标签
  • 取消选中每次发布时自动增加修订版"复选框

这篇关于防止 ClickOnce 应用程序中的自动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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