Visual Studio 2010 C++ DLL project - No output DLL file!

前端 未结 3 1260
Happy的楠姐
Happy的楠姐 2021-01-07 21:57

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.

There are only .exp, .lib

相关标签:
3条回答
  • 2021-01-07 22:22

    I have had issues w/ C# and VB where VS will not create output files. The root issue seems to be that it lost its mind w/ respect to a reference.

    I trouble shot this way

    1. exclude all files
    2. adding in a stub class1 file / compile / verify files are created
    3. add files back one by one and eventually you can determine what the issue is

      The issue for me was a .Net version mismatch. The reference had a higher version than the project failing

    No answer as to why VS does not yield a compile error in this situation. If I delete the reference altogether , it definitely complains.

    greg

    0 讨论(0)
  • 2021-01-07 22:22

    At the bottom Show output from: Change to Build Look in the folder identified.

    0 讨论(0)
  • 2021-01-07 22:45

    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.

    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 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
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

    0 讨论(0)
提交回复
热议问题