I am converting a number of my addins from VS 2008 Express, ArcGIS 10.0 to VS 2010, ArcGIS 10.1 and I need to update some but not all references. Why? For example, in the current addin I just converted to VS 2010, Why would references to ESRI.ArcGIS.System,ESRI.ArcGIS.Framework, ESRI.ArcGIS.Desktop.AddIns, ESRI.ArcGIS.ArcMapUI be updated automatically while references to ESRI.ArcGIS.Carto, ESRI.ArcGIS.Geodatabase, ESRI.ArcGIS.Geometry were not.
Until I remove references to ArcObjects version 10.0 and add the appropriate reference to version 10.1 I am getting errors such as: The project currently contains references to more than one version of ESRI.ArcGIS.Carto, a direct reference to version 10.0.0.0 and an indirect reference (through 'ESRI.ArcGIS.ArcMapUI.IMxDocument.SelectedLayer') to version 10.1.0.0. Change the direct reference to use version 10.1.0.0 (or higher) of ESRI.ArcGIS.Carto.
Would removing ArcObjects 10.0 (DeveloperKit10.0 directory) from the machine correct this issue? Should these even be on the machine after using ArcGIS 10 program remover prior to ArcGIS 10.1 installation? If I can remove these, what is the correct procedure?