使用clickonce发布解决方案时如何包含其他项目中的文件 [英] How to include files from another project while publishing a solution with clickonce

查看:378
本文介绍了使用clickonce发布解决方案时如何包含其他项目中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在部署解决方案时,我发现clickonce不会上传解决方案中项目中的某些文件。我试图在发布的应用程序文件选项卡中找到文件,但似乎它仅包括来自客户端项目的文件,而不包括其他项目。我该如何解决这个问题?它应该类似于向项目添加文件依赖项的能力。

While deploying a solution I found that clickonce doesn't upload some files from a project in a solution. I tried to find the files in the application files tab in "Publish" but it seems that it only includes the files from the client project and not other projects. How can i fix this issue? It should be something like an ability to add file dependancies to a project. The files are currently set as Copy if newer and Content.

推荐答案

通过以下方式解决:将缺少的文件添加到客户端应用程序作为链接到名为 datafiles 的单独文件夹中的实际文件。 ClickOnce似乎以这种方式解释该文件夹,即它添加了链接到输出的项目的副本。

Solved by the following manner : added the files which were missing to the client application as Links to the actual files in a separate folder called datafiles. ClickOnce seems to interpret this folder in such a way that it adds copies of the items which are linked to the output.

这篇关于使用clickonce发布解决方案时如何包含其他项目中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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