8 Replies Latest reply on Nov 27, 2012 6:19 AM by egosselinesri-ca-esridist

    Can AddIn target somehow set to be 10.x

    Yiman
      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?
        • Re: Can AddIn target somehow set to be 10.x
          FZhang-esristaff
          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)."
          • Re: Can AddIn target somehow set to be 10.x
            Yiman
            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?
            • Re: Can AddIn target somehow set to be 10.x
              FZhang-esristaff
              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.
              • Re: Can AddIn target somehow set to be 10.x
                ericmweber
                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.
                • Re: Can AddIn target somehow set to be 10.x
                  Yiman
                  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.
                  • Re: Can AddIn target somehow set to be 10.x
                    alberto69
                    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.
                    • Re: Can AddIn target somehow set to be 10.x
                      richwawr
                      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.
                      • Re: Can AddIn target somehow set to be 10.x
                        egosselinesri-ca-esridist
                        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