-1

I have a project that relies on some other projects on my solution. For example assume that my main project is m and it produce m.exe

This project depends on some other projects say a.dll, b.dll,c.dll.

My problem is:

when I build m.exe, a.dll,b.dll and c.dll are created and the output is placed in some directory on my pc, but these dlls are not copied to output directory of m.exe and hence when I want to debug m.exe, they are not found.

If I copied them to output directory (debug directory) the application runs, but I am not able to debug into a.dll,b.dll and c.dll.

How can setup my MSVC so I can compile and debug into these dlls?

I am using Visual studio 2012.

4

1 回答 1

0

在每个项目的项目设置(配置设置 -> 常规)中,您可以设置输出目录。将每个项目的每个配置/平台更改为 eg $(SolutionDir)$(Platform)\$(Configuration)\(或任何其他为每个项目解析到相同位置的内容)。

替代方法是添加构建后步骤以通过命令复制文件,或者更改 DLL 解析机制并使用延迟加载代码“手动”解析引用的 DLL。

于 2013-05-22T20:08:36.853 回答