[英]C# ClickOnce application doesn't update
I have a C# application which I want to publish to an FTP site, and it will automatically update my application from this FTP location. 我有一个C#应用程序,我想发布到FTP站点,它将自动从这个FTP位置更新我的应用程序。 So I run the publish wizard:
所以我运行发布向导:
Specify the location to publish this application: 指定发布此应用程序的位置:
ftp://45.webmasters.com/program/
I abandoned the publish wizard and try to publish from the properties. 我放弃了发布向导并尝试从属性发布。 In Solution Explorer, right-click on the project and click properties and go to Publish tab.
在解决方案资源管理器中,右键单击项目并单击属性,然后转到“发布”选项卡。
And finally I press PUBLISH NOW and the application is published on the FTP site. 最后我按下PUBLISH,应用程序在FTP站点上发布。 I go to the FTP site, and I download the application and the application files and I run the application from my desktop and it checks for updates before the application starts, but when I publish newer versions on the FTP site and I run the application shouldn't it download the newer version?
我去了FTP站点,我下载了应用程序和应用程序文件,我从桌面运行应用程序,它在应用程序启动之前检查更新,但是当我在FTP站点上发布更新版本并运行应用程序时它下载新版本? It doesn't;
它没有; it sticks with the old version.
它坚持旧版本。
I cannot understand these options.. Is it possible that is not allowed to publish and update from an FTP location? 我无法理解这些选项..是否有可能不允许从FTP位置发布和更新?
It says it in How to: Publish a ClickOnce Application using the Publish Wizard that Direct download from FTP is not supported. 它在“ 如何:使用发布向导发布ClickOnce应用程序”中说明 , 不支持从FTP直接下载。 when you publish to 'publish to a file share' - maybe you should choose 'publish to a web' path.
当您发布到“发布到文件共享”时 - 也许您应该选择“发布到网络”路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.