我怎么可以复制嵌入到资源输出目录中呢? [英] How can I copy the embedded resource into output directory as well?

查看:200
本文介绍了我怎么可以复制嵌入到资源输出目录中呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个规则的文件工作流程解决方案,我在和它的属性。

I have a rules file for workflow within my solution and its properties are

生成操作 =嵌入的资源,

复制到输出目录 =始终复制

我不能更改构建行动内容,否则工作流程汇编将无法正常工作。但是,我需要的文件部署到输出文件夹,似乎不工作。是否有什么我失踪?

I can't change the build action to Content, otherwise the workflow compilation won't work. However, I need the file to be deployed to the output folder and it seems not to work. Is there anything I'm missing ?

推荐答案

如果该文件设置为嵌入的资源,应该直接作为据我所知嵌入到EXE。

If the file is set as an embedded resource, it should be embedded directly into the EXE as far as I know.

无论如何,你可以添加一个生成后的行动刚刚将文件复制到如果这就是它需要的工作方式输出文件夹:用鼠标右键单击在解决方案资源管理器中的项目,然后单击属性,然后在生成事件选项卡中,可以指定要被复制,其中的哪些文件。

Regardless, you can add a post-build action which just copies the file into the output folder if that's the way it needs to work: right-click the project in Solution Explorer and click Properties, then in the Build Events tab you can specify what files you want to be copied where.

这篇关于我怎么可以复制嵌入到资源输出目录中呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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