Visual Studio: Different DLLs for configurations

后端 未结 4 1353
迷失自我
迷失自我 2021-02-04 03:44

I\'d like to make a x86 and x64 version of my application because some of the libraries I\'m using have differences for x86 and x64 (e.g. SQLite). I made a new configuration fo

4条回答
  •  旧巷少年郎
    2021-02-04 04:17

    You need a condition to the dll reference in the project file.
    This will cause visual studio to recheck the condition and reference whenever you change the active configuration.
    Just add a condition for each configuration.

    Example:

     
        
          ..\DLLName.dll
        
        
          {AAAAAA-000000-BBBB-CCCC-TTTTTTTTTT}
          MyOtherProject
        
      
    

提交回复
热议问题