ClickOnce自定义发布路径 [英] ClickOnce custom publish path

查看:155
本文介绍了ClickOnce自定义发布路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为ClickOnce设置自定义发布路径?我拥有的主机不支持路径中的空格,文件发布所在的"Application Files"文件夹中有一个空格.如果我只是更改.application文件中的代码库路径,则该应用程序在加载时甚至不会超过检查更新"部分.

Is there a way to set a custom publish path for ClickOnce? The hosting i have doesn''t support spaces in paths and the "Application Files" folder where the files get published has a space. If i just change the codebase path in the .application file, the application won''t even get past the "checking for updates" part when it loads.

推荐答案

从未尝试过,但是在发布应用程序时,在部署清单(文件SomeApplication.application)中定义了"Application Files"文件夹,因此您可以手动更改它.缺点是每次发布时都会重新生成.

因此,也许更好的方法是使用Mage手动进行发布.有关详细信息,请参见: http://msdn.microsoft.com/en-us/library/xc3tc5xx.aspx [^ ]
Never tried it but when you publish the application, the "Application Files" folder is defined in the deployment manifest (the file SomeApplication.application), so you can change it manually. The downside is that it''s generated again every time you publish.

So perhaps a better way to do this would be to make the publish manually using Mage. For details, see: http://msdn.microsoft.com/en-us/library/xc3tc5xx.aspx[^]


您尝试使用发布"向导吗?应该有一个您想在哪里发布该应用程序?"当您运行此向导时.
Did you try using the Publish wizard? There should be an "Where do you want to publish the application?" when you run this wizard.


这篇关于ClickOnce自定义发布路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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