简体   繁体   English

在VS2010中将内容导出到多项目解决方案的输出文件夹中

[英]Exporting content to the output folder of a multi-project solution in VS2010

I have a solution in visual studios. 我在视觉工作室有一个解决方案。 2 of the projects it contains are test projects. 它包含的项目中有2个是测试项目。 2 are actual software to be deployed. 2是要部署的实际软件。 1 of these projects is stand alone the other, lets call this project B. The main project, lets call it project A, references project B's dll file. 这些项目中的一个是独立的,另一个称为项目B。主项目,称为项目A,引用项目B的dll文件。

Both of these projects have some content that needs to be copied to output. 这两个项目都有一些需要复制到输出的内容。 They both work fine on their own; 他们俩都可以很好地工作。 however, when project A builds and launches it does not pull project B's content. 但是,当项目A生成并启动时,它不会提取项目B的内容。 This would make sense of course since the only thing it references is a dll. 这当然很有意义,因为它所引用的唯一东西是dll。 Furthermore, it doesn't do any installation of project B it just has a reference to it. 此外,它没有对项目B进行任何安装,只是对其进行了引用。

I think ideally some step in there would allow me to have both project A and B both installed and run (this is a powerpoint add-in btw), and their assets potentially merged. 我认为理想的做法是允许我同时安装和运行项目A和B(这是Powerpoint外接程序btw),并且它们的资产可能会合并。 If needed their assets can be separate, but I just need to make a calls to project B from A and have it return me some files. 如果需要,它们的资产可以分开,但是我只需要从A调用项目B,并让它返回一些文件即可。

I think this might sound more complicated than it is. 我认为这听起来可能比实际复杂。

你可以有Visual Studio的“链接”,在A中的B的内容文件的表示...... 看到这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM