Is it possible to add to my C# project a reference to a different dll versions in x86 and x64 (and switch automatically between them, while changing Configuration Mode)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think there’s anything in the IDE that will do this, but you can accomplish this by manually editing the C# project file.
Something that looks like:
<Reference Include="ThirdPartyAssembly" />Could be changed to:
<Reference Include="ThirdPartyAssembly.x86" Condition="'$(Platform)' == 'x86'" /><Reference Include="ThirdPartyAssembly.x64" Condition="'$(Platform)' == 'x64'" />