Migrating .NET Addins from 10.0 to 10.2

486
1
04-25-2014 02:03 PM
MikeMiller1
New Contributor II
I have some .NET Addins I developed on a 10.0 platform with VS 2010. I need to use those add-ins in an ArcGIS 10.2 environment. I get several error messages everytime I open a form but I clear the error messages and the code seems to run OK so I am assuming that it is a .NET compatibility issue not an issue with my ArcObjects code.

If I open my project on a machine with VS2010 express and Arc 10.2 can I compile it against the 3.5 framework? Or the 10.2 DLLs?

How does one go about migrating addins forward as ESRI and microsoft continue to change the development environment?
Reply
0 Kudos
1 Reply
NeilClemmons
Regular Contributor III
Supporting multiple versions of ArcGIS is relatively easy if you do it right.  Basically, you need to compile your code for each supported version.  We use a build server along with Jenkins and ANT scripts to automate our builds but that's a lot of work to setup if you've never done it before.  Another way is to use virtual machines, one for each supported version of ArcGIS.  We keep our repository in source control at the oldest version of ArcGIS that we support and do all of our development in that version.  If you use Git for source control then you can create a development branch for each supported version.  Do your development in the lowest version branch and push those changes to each of the other branches.  Your master branch would be your release version so only push changes to it when you're ready to deploy a version.  To make a build for any particular version, simply check out the appropriate branch on the VM for that version and compile.  You can use other source control software of course, but Git makes this very easy.