I need to use ComReleaser, BaseCommand and MxCommand.
The simple solution is to use ESRI.ArcGIS.ADF since it has these classes. However, the compiler complains:
The type 'ESRI.ArcGIS.ADF.BaseClasses.BaseCommand' is defined in an assembly that is not referenced. You must add a reference to assembly 'ESRI.ArcGIS.ADF.Local, Version=10.1.0.0, ...
And if I add that reference, it complaints that I have duplicate:
The type 'ESRI.ArcGIS.ADF.CATIDs.MxCommands' exists in both 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.dll'
How do I resolve this issue? Is there a way to explicitly specify which dll to load the class from?
Please help.
The simple solution is to use ESRI.ArcGIS.ADF since it has these classes. However, the compiler complains:
Quote:
The type 'ESRI.ArcGIS.ADF.BaseClasses.BaseCommand' is defined in an assembly that is not referenced. You must add a reference to assembly 'ESRI.ArcGIS.ADF.Local, Version=10.1.0.0, ...
Quote:
The type 'ESRI.ArcGIS.ADF.CATIDs.MxCommands' exists in both 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.dll'
Please help.