Running Mogre_d and Mogre in one solution?


03-06-2010 17:00:19


maybe a simple question, but I can't seem to figure it out by myself...

How do I specify to use Mogre.dll for release configuration build and Mogre_d.dll for Debug builds under the Visual Studio C# references?

If I add both, VS always uses both (complaining about duplicate types).

Ciao, Imi.


03-06-2010 17:39:19

Open the project file in a text editor and replace the existing Mogre reference entries with:
<Reference Include="Mogre" Condition="'$(Configuration)'=='Release'">
<Reference Include="Mogre_d" Condition="'$(Configuration)'=='Debug'">

(should work with VS2008, not tested with VS2010)