如何从 Visual Studio 项目中定义需要部署在 ClickOnce 应用程序中的程序集和非程序集文件?

发布于 2024-08-18 13:57:08 字数 173 浏览 4 评论 0原文

因此,我试图弄清楚是否有一种方法可以在 Visual Studio 中定义我需要使用 ClickOnce 应用程序部署的文件和程序集。

我想“发布”应用程序,而不必使用 Mage 进行任何更多修改。特别是对于持续集成。

这可能吗?我可以在 app.manifest 文件中添加一些内容来执行此操作吗?

So I am trying to figure out if there is a way to define the files and assemblies I need deployed with a ClickOnce app, from within Visual Studio.

I would like to "Publish" the application and not have to make any more modifications with Mage. Especially for continuous integration.

Is this possible? Can I add something to the app.manifest file, to do this?

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

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

发布评论

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

评论(1

枕头说它不想醒 2024-08-25 13:57:08

您应该能够通过向项目添加文件来完成此操作,并在属性窗口中将“构建操作”设置为“内容”。

您可能还必须设置“复制到输出目录”属性。

(这没有使用 ClickOnce 进行测试,但它适用于其他构建和部署方法)

You should be able to do this by adding a file to the project, and in the properties window, set the "Build Action" to "Content"

You may also have to set the "Copy to Output Directory" property as well.

(this is not tested using ClickOnce, but it works with other build and deploy methods)

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