通过ClickOnce进行项目部署 [英] Project deployement over ClickOnce

查看:87
本文介绍了通过ClickOnce进行项目部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的winform项目。到目前为止它是空的。它在program.cs中有默认代码,用于打开默认的form1。

I have created a new winform project. It is empty so far. It has the default code in the program.cs that open the default form1.

我在网络文件夹上创建了一次脱机点击。我发布了项目并运行了安装程序并且安装得非常好。当我启动它时,表格正常显示。然后我卸载了该应用程序。删除了clickonce发布的网络
文件夹的全部内容。在表单加载中添加了一个消息框。跑了代码(F5),它的工作原理。更改clickonce deployement的版本并再次发布。在网络共享中进行设置。它安装没有任何问题,我运行
应用程序。表单打开但没有消息框。

I created an offline click once deployement on a network folder. I publish the project and i run the setup and it installs it very well. When i start it the form shows normally. Then i uninstalled the application. Deleted the whole content of the network folder where clickonce published it. Added a message box into the form load. Ran the code (F5) and it works. Change the version of clickonce deployement and published again. Ran the setup in the network share. It install without any problems and i run the application. the form open but no message box.

点击一次不使用最新版本进行部署,怎么来的?

Click once does not use the latest build to deploy, how come ?

注意:我也在StackOverflow上发布了这个,但我只是尝试在表单上添加一个标签,以确保它不仅仅是被阻止的消息框和标签也没有显示。我直接在我的调试文件夹中运行了exe,它非常完美。标签和消息框都有

Note: i also had posted that on StackOverflow but i just tries to add a label on the form just to make sure it's not simply the messagebox that is blocked and the label doesn't show either. I ran the exe in my debug folder directly and it's perfect. I have both the label and the message box.

推荐答案

您好Cyber​​Franck,

Hi CyberFranck,

感谢您在此发帖。

根据您的问题与ClickOnce更相关,我将其移至
ClickOnce and Setup&部署项目
 论坛以获得合适的支持。

According to your question is more related to ClickOnce, I will move it to ClickOnce and Setup & Deployment Projects forum for suitable support.

此论坛讨论并询问C#编程语言,IDE,库,示例和工具。

This forum discuss and ask the C# programming language, IDE, libraries, samples and tools.

最诚挚的问候,

Wendy


这篇关于通过ClickOnce进行项目部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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