PDA

View Full Version : DirectX Reference Conflicts


tmitchell
08-25-2006, 10:17 PM
I've searched high and low for a definitive answer to this one. How do you deal with the conflicting versions of DirectX managed dll's that are loaded in a WorldWind project? Whether I pull down the latest project files from the SVN repository or a prepackaged source archive, I am confronted by this issue.

On first compile, I get errors like this all over the place (PluginSDK is notorious):

The type 'Microsoft.DirectX.Direct3D.Texture' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.Direc tX.Direct3D\1.0.2902.0__31bf3856ad364e35 \Microsoft.DirectX.Direct3D.dll' and 'c:\WINDOWS\assembly\GAC_32\Microsoft.Di rectX\2.0.0.0__31bf3856ad364e35\Microsof t.DirectX.dll'


How do the project developers have their system set up that they can load the project files without modification? I find myself constantly removing the 2.0 DirectX references and replacing them with the 1.1 versions to get World Wind to compile.

Bonus question: Along the same lines, how do I get around errors like this without replacing them with the full namespace names?

'SettingsBase' is an ambiguous reference between 'System.Configuration.SettingsBase' and 'WorldWind.Configuration.SettingsBase'

step
08-26-2006, 12:53 PM
just committed a minor change to the project files that should fix this issue (SVN revision 2899).

cheers,
-step

tmitchell
08-28-2006, 11:21 PM
Still curious how people had things set up to allow the conflicts to coexist, but the latest SVN fixes it. Looks like the references to the 2.0.0 libraries are removed. Is that versioning different than the .NET runtime? I thought 1.4.0 was the .NET 2.0 release.

what_nick
08-29-2006, 11:06 AM
Hi Tyler,
1.4 is not pure 2.0 it still uses 1.1 DirectX versions.

Cheers,
what_nick.

adamhill
08-30-2006, 12:58 AM
Basically what was happening is that the .csproj's were set up to use the "latest" version of DX on the system and up until we switched to 2.0 and someone had the ill fated MDX 2.0 on their machine VS only looked for .NET 1.1.

Unregistered
11-09-2008, 12:09 AM
To work with MDX please download

http://download.microsoft.com/download/9/8/4/9843fbf1-1ab1-4e79-937a-2807efdbbb8e/dx90b_sdk_devruntime.exe

inside are two folder Debug and Retail.
I don't know what is the difference but I have used Debug

run dxdevrtm.exe

unpack Debug\ManagedDX.CAB

and run mdxredist.msi