I want a help on conditional compilation in visual studio, I have an SAP library that I use in my environments that I need to reference the correct version of this DLL depending on the server architecture, for example:
I have some old web sites that are still hosted on 32-bit machines, in which case I need to compile a 32-bit library to be able to publish in production.
I already have other newer sites that are hosted on another server that architecture is 64 bits, but to be able to use the same library I have to point to the 64-bit version of the Dlls and compile.
Before they say anything, it does not resolve to configure my project for AnyCPU, it does not work.
What I would like to know is if there is any way to automate this and prevent me from having to compile the project every time I reference the correct architecture, I've been searching and found the insert the link description here below, but it is not working it ignores the directives and always compile with 32-bit Dlls