Visual Studio 2010 C ++ DLL项目 - 没有输出的DLL文件!
我可以编译DLL项目没有任何错误。它说Build succeeded。
但我在Debug或Release文件夹中没有看到任何DLL文件。
I can compile the DLL project without any error. It says "Build succeeded". But I don't see any DLL file in the Debug or Release folder.
只有.exp,.lib和.pdb文件
There are only .exp, .lib and .pdb files
Visual Studio 2010默认将输出文件放在 $(SolutionDir)\Debug 或 $(SolutionDir)\Release 。很可能你正在查看项目中的Debug和Release文件夹 - 这是中间文件夹。
Visual Studio 2010 by default puts the output files in $(SolutionDir)\Debug or $(SolutionDir)\Release. It's quite likely you are looking at Debug and Release folders inside the project - which are the intermediate folders.
找出输出文件打开的位置项目属性>常规>输出目录。默认情况下它是 $(SolutionDir)$(Configuration)\ ,它的解决方案目录中的Debug或Release。
To find out where the output files got open Project Properties > General > Output Directory. By default it is $(SolutionDir)$(Configuration)\ which evaluates to either Debug or Release in your solution directory.
EDIT Visual Studio将告诉您将输出文件放在输出窗口中的什么位置。只需通过进入视图>输出。它会说这样:
EDIT Visual Studio will tell you where it places the output files in the Output window. Just bring it up by going to "View > Output". It'll say something like this:
1> MFCInterop.vcxproj - > C:\temp\sotest\Debug\ MFCInterop.dll
==========重建全部:1成功,0失败,0跳过==========
1> MFCInterop.vcxproj -> C:\temp\sotest\Debug\MFCInterop.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========