You probably need to manually edit the main .csproj file. Something like this
<Reference Condition=" '$Configuration'=='Debug' " Include="path\to\Debug\Foo.dll" /> <Reference Condition=" '$Configuration'=='Release' " Include="path\to\Release\Foo.dll" />
(It may be easy to add a link to the debug version through viewing, then right-click the project in the solution explorer, click "Unload project", then right-click again, "Edit your.csproj", make the above change to Foo.dll, which you just added, then right-click "Project Reloading".)
EDIT
To avoid looking at two copies inside VS, maybe something like
<Reference debugstuff as before> <Visible Condition=debugcond>true</Visible> <Visible Condition=releasecond>false</Visible> </Reference> and same for release
That is, conditionally set the Visible metadata under the node link to true / false based on the condition. I have not tried to find out if this works.
Brian
source share