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'
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'