Within Visual Studio 2010, I entered in the following for Using directives: using ESRI.ArcGIS.ArcMapUI; using ESRI.ArcGIS.Desktop; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.Framework;
I tried creating an IMaps variable by entering: IMaps pMaps = pMxDocument.Maps;
But I am getting an error "The type or namespace name 'IMaps' could not be found (are you missing a using directive or an assembly reference?)". Based on Intellisense, I don't see what other directives I should use. This seems like it should have an obvious answer which I am missing.
When I first typed in using ESRI.ArcGIS.Carto, I got the following error message: The type or namespace 'Carto' does not exist in the namespace 'ESRI.ArcGIS'. Then within the Solution Explorer I right-clicked References >> Add Reference... and in the .NET tab I selected ESRI.ArcGIS.Carto. Then no more error messages.
There are quite a few ESRI references in the list of references under .NET. Is there some source which shows which specific references are required for specific interfaces which a user wants to use?