本文介绍了自动安装使用ClickOnce部署更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想我的部署与的ClickOnce部署的项目。但是,当我做到了这样,它是在最终用户机器要求在一个对话框: But my end users don't have a mouse or keyboard. So my intention is: It must take the updates automatically, but it must NOT ask that dialog box at the client side. How do I achieve this by using ClickOnce deployment? 解决方案 Looks like you can do this by changing some properties in the build.http://blog.jnericks.com/configuring-msbuild-to-auto-update-clickonceNo MSBuild scenario:Right Click your project and select PropertiesGo to the "Publish" tab on the bottom leftClick the "Updates..." button to open the Application Updates dialogCheck "The application should check for updates"Select "Before the application starts"Check "Specify a minimum required version for this application"Enter the Publish Version that you can see in the underlying Publish window as the minimum version. Unfortunately, you have to change this every publish. There might be a way for this to be auto, though.Then publish the application and test it. This was worked fine for me on a local test application.Edit: looks like some people have been getting the minimum required version to update, might want to look into their solutions.Edit 2: Image showing where versioning is important:Also, note I have "Automatically increment revision with each publish" checked. Every time you go into the Properties for the project, that version will be up to date. You'll generally just have to change the "Revision" part of the Version in the "Application Updates" window to match the "Revision" in the Publish tab. 这篇关于自动安装使用ClickOnce部署更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-27 23:39