我怎么可以复制嵌入到资源输出目录中呢?我怎么、资源、目录中

2023-09-07 00:23:01 作者:每一段路都是一种领悟

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

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.

 
精彩推荐
图片推荐