发布时,Visual Studio 2010在C#项目中不包含C++ dll

Fab*_*ian 3 xna publish visual-studio-2010 c#-4.0

我有以下依赖:

C++库< - C#库< - C#应用程序

问题:当我发布C#应用程序时,不包含C++ dll

如何告诉Visual Studio还包含C++ dll?(注意:因为这只是一个小项目,快速修复已经足够了)

Mag*_*son 6

您可以通过将C++ DLL作为项目中的文件包含来解决此问题.(项目 - >添加现有项目)

然后右键单击DLL - >属性并将其设置Build ActionContent,然后选择Copy to Output Directory要么Copy AlwaysCopy if newer.