In my project I'm using both configurations - 32 bit and 64 bit (because i'm developing on 32bit machine but deploy to 64 bit machine).
My project contains class library, that located at "C:...\Commons\bin\Debug\Commons.dll". I've added this dll to References, but of course when I've switched to 64-bit this doesn't work.
So I need mechanism of adding "platform-specific references".
I know that I can hand-edit .csproj file to add something like that:
<Reference Include="Commons" Condition="$(Platform) == 'x64'">
<HintPath>..\Commons\bin\x64\Release\Commons.dll</HintPath>
</Reference>
<Reference Include="Commons" Condition="$(Platform) == 'x86'">
<HintPath>..\Commons\bin\x86\Release\Commons.dll</HintPath>
</Reference>
Should I do the same for Class Library?
I just wonder that VS doesn't support mechanism of "platform-dependent references" even for Class Libraries?
upd it seems i actually need to link 4 types of dll somehow - x86/Debug, x86/Release, x64/Debug, x64/Release