ClickOnce 清单中的 DeploymentProvider 依赖于项目文件中的
当我在 VS2010 中为 ClickOnce 发布项目时,我的清单中出现
的奇怪值文件。 oldserver 名称错误,必须更换。
我不知道 oldserver 这个名字是从哪里来的?
在我拥有的项目文件中,
<InstallUrl>\\newserver\...\</InstallUrl>
但打开后,在 VS2010 的项目属性中 oldserver 再次显示为发布文件夹位置。
解决方案:在名为 buildconfig.targets 的隐藏文件中进行了配置。
该文件已在 .proj 文件中引用:
<Import Project="buildconfig.targets" />
在此文件中您
<UpdateUrl>\\newserver\...\</UpdateUrl>
也需要!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web
技术交流群。
当我在 VS2010 中为 ClickOnce 发布项目时,我的清单中出现
的奇怪值文件。 oldserver 名称错误,必须更换。
我不知道 oldserver 这个名字是从哪里来的? 在我拥有的项目文件中,
<InstallUrl>\\newserver\...\</InstallUrl>
但打开后,在 VS2010 的项目属性中 oldserver 再次显示为发布文件夹位置。
解决方案:在名为 buildconfig.targets 的隐藏文件中进行了配置。 该文件已在 .proj 文件中引用:
<Import Project="buildconfig.targets" />
在此文件中您
<UpdateUrl>\\newserver\...\</UpdateUrl>
也需要!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您从 Visual Studio 进行发布,请确保设置安装 URL。
它位于安装 URL 下方的发布设置(在您要发布的项目的项目设置中)中。
如果从 MSBuild 发布,则需要设置 UpdateUrl 属性(例如 /p:UpdateUrl=youraddress)。
If you're publishing from Visual Studio, make sure you set the Install Url.
It's in the publish settings (in project settings for the project you are publishing) underneath the install url.
If you're publishing from MSBuild, then you need to set the UpdateUrl property (/p:UpdateUrl=youraddress for example).
在 Visual Studio 中查看您的项目时。选择“构建”,然后选择“配置管理器”。检查构建配置中的调试和发布信息并确保它们正确。这完全是猜测,但我可以看到其中设置了一些东西。
When looking at your project in Visual Studio. select Build and then Configuration Manager. Check the information in your build configurations for Debug and Release and make sure they are correct. This is a total guess, but I could see something being set up in there.