Can AddIn target somehow set to be 10.x

5205
8
08-03-2012 10:57 AM
YimanSong
New Contributor III
I have a tool built for ArcMap 10.0, as some of my colleagues upgraded to 10.1, we are in a mixed environment. Can I set the tool to target both versions?
0 Kudos
8 Replies
FengZhang2
Occasional Contributor
Please refer to the following thread:

http://forums.arcgis.com/threads/49406-addin-to-desktop-target-version-implications

"Add-Ins targeting previous versions of ArcGIS will automatically load in newer releases, there is no need to rebuild or reinstall them. For example, ArcGIS 10.1 will automatically discover and load add-ins from the 10.0 well-known folder location(C:\Users\<username>\Documents\ArcGIS\AddIns\Desktop10.0)."
0 Kudos
YimanSong
New Contributor III
Now I already updated my SDK to 10.1, my 10,0 AddIn users would get an error "Installation failed. Matching ArcGIS installation not found.". Is there anyway to fix that without me rolling back to 10.0 SDK?
0 Kudos
FengZhang2
Occasional Contributor
In the Visual Studio Add-in 10.1 project, open the Config.esriaddinx file and change the version to 10.0. Then recompile the project, select 'No' to ignore the 'update'. The newly created add-in file ('esriAddIn') can be used to install on ArcGIS 10.0 system.

But, again, if there's anything in the addin using new 10.1 functionality, it won't work on 10.0.
0 Kudos
EricWeber
New Contributor III
In the Visual Studio Add-in 10.1 project, open the Config.esriaddinx file and change the version to 10.0. Then recompile the project, select 'No' to ignore the 'update'. The newly created add-in file ('esriAddIn') can be used to install on ArcGIS 10.0 system.

But, again, if there's anything in the addin using new 10.1 functionality, it won't work on 10.0.


I have recently upgraded to 10.1, and I tried these steps to build an add-in for users still on 10.0, and it doesn't seem to work. On the 10.0 computer we tested it on, the add-in installs successfully, but ArcMap crashes on startup. I have made minimal changes since upgrading; I'm just about certain there's no "new 10.1 functionality." I never should have moved to 10.1 in the first place, and I'll probably just revert back to 10.0 unless anyone can offer a solution.
0 Kudos
YimanSong
New Contributor III
It doesn't work for me either. Arc crashed after the installation. Does it mean I have to move back to 10.0 to support both versions? I really hope not.

In the Visual Studio Add-in 10.1 project, open the Config.esriaddinx file and change the version to 10.0. Then recompile the project, select 'No' to ignore the 'update'. The newly created add-in file ('esriAddIn') can be used to install on ArcGIS 10.0 system.

But, again, if there's anything in the addin using new 10.1 functionality, it won't work on 10.0.
0 Kudos
AlbertoDe_Luca
New Contributor
In the Visual Studio Add-in 10.1 project, open the Config.esriaddinx file and change the version to 10.0. Then recompile the project, select 'No' to ignore the 'update'. The newly created add-in file ('esriAddIn') can be used to install on ArcGIS 10.0 system.

But, again, if there's anything in the addin using new 10.1 functionality, it won't work on 10.0.


No, that didn't work for me either. The add-in installed ok, but then ArcMap either crashed on startup or when clicking on one of the add-in's toolbar buttons (can't remember now). I didn't use any 10.1 new functionality.

So on my development machine I just removed ArcMap 10.1 and sadly switched back to 10.0.
0 Kudos
RichWawrzonek
Occasional Contributor
When creating COM tools for prior releases of ArcMap I would maintain a copy of the .NET reference folder on my dev machine for other 9.x versions . Then in Visual Studio go to the project properties page and under Reference Paths choose the folder of the references you want to use. I have not tried this is 10.x but I suspect that combined with the above workaround it would work.

In 10.0 the default location of the ArcObjects references is:
C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet
This assumes you are properly licensed for each version you compile for.
0 Kudos
ÉricGosselin
Esri Contributor
In the Visual Studio Add-in 10.1 project, open the Config.esriaddinx file and change the version to 10.0. Then recompile the project, select 'No' to ignore the 'update'. The newly created add-in file ('esriAddIn') can be used to install on ArcGIS 10.0 system.

But, again, if there's anything in the addin using new 10.1 functionality, it won't work on 10.0.



Hi,

Can you confirm if it supposed to work? Because I can't make it work. The 10.1 add-in is targeting the 10.1 references so cannot be used on 10.0

Eric G
0 Kudos