Visual Studio 2010 Compiling with the Debug or Release version of third party library depending on if my project is being compiled Build or Release?

前端 未结 4 1171
盖世英雄少女心
盖世英雄少女心 2020-11-29 20:28

I\'ve downloaded a number of 3rd party libraries (dlls) now for Visual Studio 2010/C# and I\'ve noticed that in their distributions \\bin directory they usually have two ver

4条回答
  •  不知归路
    2020-11-29 21:16

    Yes, but probably not natively inside VS2010. You can edit the .csproj file and use Condition attributes to create the references to Release or Debug.

    
      ..\lib\Debug\MyLib.dll
    
    

    or

    
      ..\lib\Release\MyLib.dll
    
    

提交回复
热议问题