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?
You can also right-click the project node and select Add > Project Reference. If you see a References node in Solution Explorer, you can use the right-click context menu to choose Add Reference. Or, right-click the project node and select Add > Reference.
To fix a broken project reference by correcting the reference path. In Solution Explorer, right-click your project node, and then select Properties. The Project Designer appears. If you're using Visual Basic, select the References page, and then click the Reference Paths button.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With