This topic describes recommded migration steps to migrate extension from the ArcObject .NET SDK to the ArcGIS Enterprise SDK.
It is important to understand migration strategies before starting migrations of your extensions. This will help to clarify implementation differences. Once you understand these differences, follow the recommended steps below for migrating extensions (SOE/SOI) from the ArcObjects .NET SDK to the ArcGIS Enterprise SDK.
- Create new project in Visual Studio, starting with the ArcGIS Enterprise SDK SOE/SOI template. This is needed because new templates contains different packaging logic to make a .soe file and they point at primary interop assemblies (PIAs) shipped with the ArcGIS Enterprise SDK.
- Add appropriate additional references not included in the template.
- Copy the entire class code (but not class declaration) from your ArcObjects .NET SOE and replace the corresponding code in the template. If your migrated SOE or SOI has a different name than your ArcObject .NET SOE or SOI, update the SOE or SOI name in the constructor. Here, you can work out an appropriate approach to copy the entire class code.
- Build your project. You may get build errors. To resolve these errors you can refer to the migration strategies topic.
- Once you resolve build errors, rebuild your project. This should create an “.soe” file inside the build output directory.
- Deploy your SOE/SOI in ArcGIS Server.
- In the ArcGIS Server Manager, navigate to “Site -> Extensions”. Make sure that your extension (deployed in step 6) has “ArcGIS Pro” as its provider value.