Visual Studio: Different DLLs for configurations

后端 未结 4 1417
迷失自我
迷失自我 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:30

    You can add conditions to the dll references in the project file but you cannot do it using Visual Studio - you will have to hand-edit the project files. See this for how to do it.

    What you need to do is to include a reference to the 32-bit dll only in the 32-bit build configuration, and a reference to the 64-bit dll in the 64-bit build configuration.

提交回复
热议问题