Running Mogre_d and Mogre in one solution?

imi

03-06-2010 17:00:19

Hi,

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.

smiley80

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'">
<HintPath>PATH\TO\Mogre.dll</HintPath>
</Reference>
<Reference Include="Mogre_d" Condition="'$(Configuration)'=='Debug'">
<HintPath>PATH\TO\Mogre_d.dll</HintPath>
</Reference>

(should work with VS2008, not tested with VS2010)