Why have separate Debug and Release folders in Visual Studio?

后端 未结 10 815
时光取名叫无心
时光取名叫无心 2020-12-14 07:20

By default, of course, Visual Studio creates separate bin folders for Debug and Release builds. We are having some minor issues dealing with those from the perspective of ex

10条回答
  •  天命终不由人
    2020-12-14 08:15

    In a previous company we got round this problem by changing the names of the debug executable and dlls by appending a "D". So

    MainProgram.exe & library.dll

    become

    MainProgramD.exe & libraryD.dll

    This meant that they could co-exist in the same output folder and all scripts, paths etc. could just reference that. The intermediate files still need to go to separate folders as the names of these can't be changed.

    Obviously you need to change all your references to point to the modified name for debug - which you will forget to do at some point.

提交回复
热议问题