Sklivvz
Sklivvz

Reputation: 31133

Using different references in Visual Studio 2010 for different build platforms?

How do I set up a VS2010 project so that it uses different references based on the chosen platform? In practice, I would like to link a 32-bit library when I choose x86 as platform, but the 64-bit version of it when I choose x64.

Any idea on how to get this swap done for a C# VS2010 project?

Upvotes: 7

Views: 4318

Answers (1)

Ralf de Kleine
Ralf de Kleine

Reputation: 11734

Haven't tried it, but possibly you'll need to edit the project file and hack the Conditions into the ItemGroup with the references.

Here you go, found an SO question here with the answer.

Upvotes: 7

Related Questions