Older Add-In-Projects with VS 2012 and ArcGIS 10.2

Discussion created by Haefele on Oct 9, 2013
Latest reply on Feb 6, 2016 by mike.robb
Has anybody managed to build 10.1 add-ins with Visual Studio 2012 and ArcGIS 10.2 on the fly?
I did'nt. The error message tells: "Unable to create .esriAddin; missing ESRI Add-in SDK component(s)".

The current ArcObjects Help for .Net does not even mention any migrate requirements from moving from 10.1 to 10.2.

Ok, I could use the old 10.1 AddIns and the automatic assembly redirection which is defined in the ArcMap.exe.config. But I definitely want to build against the 10.2 assemblies using Visual Studio 2012.

The cause for the error: With the SDK for VS 2012 ESRI installs a MSBuild targets file with a different name as used with the SDK for VS 2010. They changed it from
"C:\Program Files (x86)\MSBuild\Esri\ESRI.ArcGIS.AddIns.targets"
"C:\Program Files (x86)\MSBuild\Esri\ESRI.ArcGIS.AddIns.11.targets".

In the VS Project file we can see:
<Warning Text="Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK component(s)." Condition="!Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets')" />
If we change this to the new file name, then everything works.

We have the following situation with add-ins:
Visual Studio 2010 and ArcGIS 10.1: ok
Visual Studio 2010 and Visual Studio 2012 (on the same Computer) and ArcGIS 10.1: VS 2010 ok, VS 2012 no (all other ArcObjects projects work)
Visual Studio 2012 and ArcGIS 10.2 and changing the VS project file: ok

Why does ESRI maintain such dependencies?