clickonce文件丢失 [英] clickonce file missing

查看:63
本文介绍了clickonce文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过将Clickonce与VS 2010和.NET Framework客户端配置文件3.5结合使用,我有几个文件夹,其中包含运行时所需的应用程序级XML和/或文本文件。

Using Clickonce with VS 2010 and .NET framework Client profile 3.5, I have several file folders with application level XML and/or textfiles that are needed at runtime.

这些文件夹与要使用的文件夹位于同一项目中。

The file folders sits in the same project where they are to be used.

这些文件在编译时被标记为 始终复制
的构建操作是 内容

These files are marked as "Copy always" at compile. Build Action is "Content".

在我的开发机器上,文件实际上已复制到。/Bin / Release / myFileFolder / xxxxx ,一切都很好。

On my development machine the files are actually copied into the ./Bin/Release/myFileFolder/xxxxx and all is fine.

在用户的计算机上,安装运行正常,但报告了一些文件丢失在运行时程序需要它们时。

On user's computer, install runs fine but some files are reported missing at runtime when the program need them.

我错过了什么吗?

请帮助!和.NET Framework 3.5

Help please! and .NET framework 3.5

推荐答案

如果文件在引用的项目中,则它们不包含在Visual Studio一次发布的单击中。您可以通过检查项目属性的发布页面中的应用程序文件对话框来验证这一点。

If the files are in referenced projects then they are not included in the click once publish by Visual Studio. You can verify this by checking the application files dialog in the publish page of the project properties.

如果是这种情况,则可以将这些文件添加为链接到主项目本身,或编辑项目文件以在清单中包含其他文件。参见 ClickOnce内容文件有关如何执行此操作的信息。

Assuming this is the case to get these files included you can either add them as links in the main project itself or edit the project file to include extra files in the manifest. See ClickOnce Content Files for information on how to do this.

这篇关于clickonce文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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