如何添加外部文件到应用程序文件(的ClickOnce / .NET) [英] How to add external file to application files ( clickonce / .NET)

查看:244
本文介绍了如何添加外部文件到应用程序文件(的ClickOnce / .NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用发布在VS2008的选择,我pretty的快乐是怎样工作的。

现在我想2个外部* .exe文件添加到安装的软件包
我注意到按钮应用程序文件... 的发布选项卡,但似乎不允许manualy添加新文件。

我已经打了这一点,并找到怎样的方式归档:
1.添加EXE文件项目作为
外部项目 2.改变他们的财产建设行动为内容

现在效果很好

但我收到warrning信息:

 大会file_name.exe被错误地指定为一个文件。
C:\ WINNT \ Microsoft.NET \框架\器v3.5 \ Microsoft.Common.targets PROJ_NAME
 

不知道如何解决此警告/添加EXE文件部署其他的方式?

解决方案

我最终将其添加为引用到我的项目和复制本地属性设置为True

。现在有没有报警,但要确保你不小心删除它当您单击未使用的引用按钮。

I'm using 'Publish' option in vs2008 and I'm pretty happy how it works.

Now I'd like to add 2 external *.exe files to installed package
I've noticed button 'Application Files...' at publish tab but it seems doesn't allow adding new files manualy.

I've played with this and found the way how to archive that:
1. add EXE files to project as external items
2. change their property 'build action' to content

Works well now

but I'm receiving warrning info:

Assembly 'file_name.exe' is incorrectly specified as a file.
C:\WINNT\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets  PROJ_NAME

Any idea how to resolve this warning / add exe files to deployment other way?

解决方案

I ended up adding it as a reference to my project and setting the Copy Local property to True. Now there is no warning, but make sure you don't accidentally remove it when you click the Unused References button.

这篇关于如何添加外部文件到应用程序文件(的ClickOnce / .NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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