ClickOnce 清单中的 DeploymentProvider 依赖于项目文件中的
发布于 2024-11-24 04:49:03 字数 640 浏览 4 评论 0 原文

当我在 VS2010 中为 ClickOnce 发布项目时,我的清单中出现 的奇怪值文件。 oldserver 名称错误,必须更换。

我不知道 oldserver 这个名字是从哪里来的? 在我拥有的项目文件中,

<InstallUrl>\\newserver\...\</InstallUrl>

但打开后,在 VS2010 的项目属性中 oldserver 再次显示为发布文件夹位置。

解决方案:在名为 buildconfig.targets 的隐藏文件中进行了配置。 该文件已在 .proj 文件中引用:

<Import Project="buildconfig.targets" />

在此文件中您

<UpdateUrl>\\newserver\...\</UpdateUrl>

也需要!

When I publish my project in VS2010 for ClickOnce a strange value for <deploymentProvider codebase="file://oldserver/.../....application" /> was present in my manifest file. The name oldserver name was wrong, it had to be replaced.

I didn't have a clue where the name oldserver came from?
In the project file I had

<InstallUrl>\\newserver\...\</InstallUrl>

but when opened, in the project properties in VS2010 oldserver was again displayed as publish folder location.

SOLUTION: In a hidden file called buildconfig.targets this was configured.
This file was referenced in the .proj file:

<Import Project="buildconfig.targets" />

In this file you need

<UpdateUrl>\\newserver\...\</UpdateUrl>

as well!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

坐在坟头思考人生 2024-12-01 04:49:03

如果您从 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).

最单纯的乌龟 2024-12-01 04:49:03

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文