Skip to content
Uma Harano edited this page Jan 25, 2019 · 46 revisions

General

How do I provide feedback for the ArcGIS Pro SDK?

Please post to the ArcGIS Pro SDK Group on GeoNet.

Where can I find general resources on the Pro SDK?

Please refer to ProConcepts Migrating to ArcGIS Pro for links to resources on learning the Pro SDK.

Can a namespace with an Internal subpath be used to create add-ins?

No. Anything with an Internal name component in a namespace (that is, a subpath component that uses the literal string Internal) is unsupported. It may not be used. None of these Internal methods are documented and since they are internal, are subject to change at any release.

Where can I find the ArcGIS Pro API Reference?

It is found at https://pro.arcgis.com/en/pro-app/sdk/api-reference/.

Where can I find a complete list of the latest API changes?

Please consult the What's New for Developers page, API Changes section for the current release.

Which Pro assemblies are supported for the Pro SDK?

Consult https://pro.arcgis.com/en/pro-app/sdk/api-reference/ for the complete list.

Any assembly with publicly scoped code that is not in this list is not supported.

What are the ways that ArcGIS Pro can be extended?

ArcGIS Pro can be extended with:

What is an add-in?

An add-in is an archive file containing an add-in assembly that references the Pro API. The assembly, along with a companion Config.daml file, can customize the Pro UI as well as add custom functionality to Pro (to automate a repetitive workflow or procedure, to add a custom tool or function, etc.).

Add-ins follow the same deployment model as was used at 10x, even though the underlying framework is different. The add-in package (".esriAddInX") is deployed to a well-known folder. By default, this is C:\Users\<Username>\Documents\ArcGIS\AddIns\ArcGISPro. There is an add-in manager utility for ArcGIS Pro the same as there is for 10x.

Consult ProConcepts Framework for more information.

Where do I manage my installed add-ins?

Go to the Add-in Manager page on the backstage of Pro.

What is a configuration?

An ArcGIS Pro configuration is an advanced customization of the application as compared to an add-in. Configurations are similar to add-ins but offer more ways to extend the application including customizing the splash screen and start-up page, customizing the ribbon, and customizing the start-up experience.

Configurations follow a similar deployment model to add-ins. The configuration package (.proConfigX) is deployed to the C:\Users\<UserName>\Documents\ArcGIS\AddIns\ArcGISPro\Configurations folder.

Consult ProConcepts Configurations for more information.

Can I install multiple configurations on a single machine?

Yes, but only one configuration can be loaded during startup. Consult ProConcepts Configurations for more information.

I have Configurations already installed in my Public User Documents Folder and they won't load.

Prior to 2.2, the default location for Configurations was C:\Users\Public\Documents\ArcGIS\ArcGISPro\Configurations folder which has since been changed to C:\Users\<UserName>\Documents\ArcGIS\AddIns\ArcGISPro\Configurations. To configure Pro to use the legacy default location for Configurations, add the admin key HKLM\Software\ESRI\ArcGISPro\Settings\UsePublicConfigurationFolders to your registry.

Consult ArcGIS Pro Registry Keys: UsePublicConfigurationFolders for more information.

Can Pro load multiple configurations per session?

No. Only one configuration can be loaded per session. Consult ProConcepts Configurations for more information.

Does the ArcGIS Pro .NET SDK support stand-alone applications?

Use of Geometry and Geodatabase classes in ArcGIS.Core.dll is supported. Refer to ProConcepts CoreHost for more information.

Does the ArcGIS Pro SDK support automation?

Yes. Automation is supported via Python and the arcpy.mp module.

Are the ArcGIS Pro Icons released with the ArcGIS Pro SDK?

No, the Pro icons will not be released.

How do I use one of the ArcGIS Pro icons in my custom add-in?

To use one of the Pro icons in your add-in, follow the steps below:

  1. If you want to use a Pro icon on a ribbon button, then set the smallImage and largeImage attributes in the Config.daml equal to the packuri of the Pro icon you want to reference. For example, here we reference the stock select tool icon on a custom button:
<button id="..." caption="..." className="..."
  smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/SelectionSelectTool16.png" 
  largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/SelectionSelectTool32.png">
         <tooltip heading="Tooltip Heading">...<disabledText /></tooltip>
</button> 

(You can find all the pack URIs of all the Pro icons in your bin\Extensions\<Extension> folders in the extension DAML files).

  1. If you want to use a Pro Icon on a WPF button or other WPF control then set the relevant content property of the button or control in your <UserControl>.xaml. Use the pack URI of the Pro icon (or set it on a view model property). For example, here a WPF button on a dockpane user control is referencing the Pro clear select icon.
<Button Width="300" Height="50">
 <StackPanel Orientation="Horizontal">
   <Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/SelectionClearSelected16.png"/>
   <TextBlock Text="My Custom Button" VerticalAlignment="Center" />
 </StackPanel>
</Button>

If you plan to use one of the Pro icons in your add-in, it should be used for a similar purpose as the stock button or tool in Pro that also uses it (e.g. using select icons for a custom selection, edit icons for a custom edit tool, etc.). Using Pro icons in your own Add-ins for different purposes than the COTS tools can cause confusion with users.

Where can I find a reference for Pro DAML IDs?

ArcGIS Pro DAML ID Reference is a wiki page listing all the DAML values for controls and conditions.

Additionally, you can access these DAML IDs within Visual Studio in your add-in project by using the Pro Generate DAML Ids utility.

Are there samples for the SDK?

Yes. The samples are found in the https://github.com/esri/arcgis-pro-sdk-community-samples repo.

Where can I find the samples for a previous release of the SDK?

The samples per release can be accessed here: https://github.com/Esri/arcgis-pro-sdk-community-samples/releases

Where can I find the wiki documentation for a previous release of the SDK?

Older versions of the ArcGIS Pro SDK documentation is available from version 1.4 onward. When you clone the https://github.com/Esri/arcgis-pro-sdk/wiki repo, the master branch contains the documentation for the latest ArcGIS Pro SDK. In addition to the master branch, the older versions of the documentation can be obtained by switching to the v1.4.0.xxxx, v2.0.0.xxxx, v2.1.0.xxxx, etc branches.

Why are my Custom Application and Project Settings not saved when I migrate my add-in from Pro 1.x to 2.x?

Custom settings are not converted from ArcGIS Pro 1.x to ArcGIS 2.x.

Is it possible to run geoprocessing tools using the Pro SDK?

Yes. Consult the ProConcepts Geoprocessing document.

Is there a central location where I can distribute and sell my add-ins?

Yes, the ArcGIS Marketplace provides this capability to registered Marketplace providers.

Installation

I have always installed ArcGIS Pro SDK for .NET using the MSI installer previously. How do I install it now?

Starting with version 2.0, ArcGIS Pro SDK for .NET is exclusively available in VSIX package format only. If you have previously installed ArcGIS Pro SDK for .NET using the MSI mechanism, uninstall it from the control panel. Refer to the ProGuide: Installation-and-Upgrade for detailed instruction to install the SDK.

How do I know if I have used the VSIX or MSI mechanism to install a previous version of ArcGIS Pro SDK for .NET?

When you use the MSI mechanism to install ArcGIS Pro SDK, you will not be able to modify or uninstall it from within Visual Studio's Extensions and Updates dialog.

  • In Visual Studio click Tools > Extensions and Updates to bring up the Extensions and Updates dialog.
  • Select the ArcGIS Pro SDK for .NET item listed under the "Installed > All" folder option (Default).
  • The Disable and Uninstall button will be grayed and disabled. This indicates that ArcGIS Pro SDK for .NET was installed using the MSI mechanism. msi-mechanism.png
  • If the Disable\Uninstall button is not grayed out and is enabled, this indicates that ArcGIS Pro SDK for .NET was installed using the VSIX mechanism. vsix-mechanism.png

How do I install ArcGIS Pro SDK for .NET?

The Pro SDK templates and utilities are available as Visual Studio extensions (VSIX files) and can be installed from inside Visual Studio. You do not need administrative access or elevated user permissions to install the SDK. Refer to the ProGuide Installation and Upgrade for detailed instructions.

How do I upgrade to the latest version of the Pro SDK?

Please consult the ProGuide Installation and Upgrade document's upgrade section.

Why do I get the message "ArcGIS Pro 2.x SDK for .NET cannot be installed over ArcGIS Pro 1.x.xxxx" in Visual Studio when I attempt to create a new ArcGIS Pro add-in?

Each version of the ArcGIS Pro SDK .NET requires that you have installed the corresponding ArcGIS Pro application or newer. For example, ArcGIS Pro 2.2 SDK for .NET requires ArcGIS Pro 2.2 or better. If you are seeing this error then you have installed the latest ArcGIS Pro 2.x SDK for .NET but have not upgraded to the corresponding minimum version of ArcGIS Pro. So when you attempt to create an ArcGIS Pro add-in in Visual Studio, the missing dependency on ArcGIS Pro 2.x is detected and this message is seen.

Note: If you have the "Automatically update extensions" option turned on in Visual Studio your installation of ArcGIS Pro SDK for .NET will be automatically upgraded by Visual Studio. Therefore you may have inadvertently upgraded your Pro SDK version which is now out-of-sync with the installed version of ArcGIS Pro. For this reason we recommend turning this feature off.

auto-update.png

In Visual Studio enable/disable auto-updates per extension in Tools -> Extensions and Update or at a global level through Tools -> Options.

How do I revert back to an older version of ArcGIS Pro SDK?

Previous releases of ArcGIS Pro SDK for .NET are archived here: https://github.com/Esri/arcgis-pro-sdk/releases

Why can't the ArcGIS Pro SDK for .NET package listed in Extensions and Updates within Visual Studio be uninstalled?

It is likely that you have installed a previous version of ArcGIS Pro SDK for .NET using the msi program. So to uninstall it, you must use the Control Panel.

remove-with-control-panel.png

Why do I get a message "This extension is already installed to all applicable products" when I double-click the proapp-sdk-templates.vsix?

Scenario 1: It is likely that you have already installed ArcGIS Pro 2.2 SDK (Final). Verify that the ArcGIS Pro SDK for .NET templates and utilities are installed in Visual Studio. You should see an ArcGIS folder within the set of New Project templates for Visual C# and Visual Basic. Alternatively, you can select Extensions and Updates from the Tools menu in Visual Studio to check if ArcGIS Pro 2.2 SDK is already installed.

Scenario 2: If you have an older (1.4 or previous) version of ArcGIS Pro SDK installed using the MSI program, and you double click a 2.x version of proapp-sdk-templates.vsix you will get this message. To fix this, access your Control panel to uninstall the 1.x version of ArcGIS Pro SDK, and then double click the 2.x version of proapp-sdk-templates.vsix to install it.

Why can't I see the ArcGIS Pro SDK templates in Visual Studio?

ArcGIS Pro SDK requires .NET Framework 4.6.1 or higher. In the New Project dialog in Visual Studio, check the version of .NET Framework listed in the combo box. The version needs to be .NET Framework 4.6.1 or higher.

Refer to the the topic ArcGIS Pro SDK Templates not found in Visual Studio for more information.

How can I distribute ArcGIS Pro SDK for .NET using a private gallery within an intranet?

Refer to this topic in the wiki: Distribute ArcGIS Pro SDK for .NET using a private gallery

Availability

What versions of Visual Studio are supported?

The ArcGIS Pro SDK for .NET will be certified on Visual Studio 2015 and Visual Studio 2017. Please refer to the Requirements section for details. Note: With Pro 2.3, Visual Studio 2015 is deprecated. Support will be removed at 2.4.

What is the minimum target .NET Framework?

.NET version 4.6.1

What version of C# is supported?

This depends more on what version of Visual Studio you are using and its update level. As of the time of this writing (December 2018), the latest version of C# available with Visual Studio 2017 is version 7.3. C# 7.3 requires update 7.

Diagnosing Issues

Why does my add-in throw a ArcGIS.Core.CalledOnWrongThreadException exception?

Refer to the ProGuide: Diagnosing ArcGIS Pro Add-ins for more information on this.

Why does ArcGIS Pro not load my add-in?

Check your desktopVersion attribute in the Config.daml. Make sure your add-in desktopVersion is compatible with the version of Pro you are trying to run it on. Refer to ProConcepts Advanced Topics, add-in versioning for information on add-in versioning. Refer to the ProGuide: Diagnosing ArcGIS Pro Add-ins for other issues.

Why do I get this compiler warning when I build my add-in?

"<AddInAssembly.dll> was not found. The value of the defaultAssembly attribute in the config.daml should match the name of the of the assembly for the add-in project."

Refer to the ProGuide: Diagnosing ArcGIS Pro Add-ins for more information.

Why does my add-in's button disappear when I click on it?

Typically this means that the class your button references in its className attribute in the config.daml could either not be found or could not be loaded. Refer to the ProGuide: Diagnosing ArcGIS Pro Add-ins for more information on this.

How do I fix my broken references in my ArcGIS Pro add-in solution?

ArcGIS Pro assemblies are not stored in a GAC. They are referenced via file paths in the add-in's .csproj or .vbproj file. This means that if you share ArcGIS Pro add-ins as Visual Studio projects, your assembly reference paths stored in your .csproj or .vbproj may be different than your colleagues'. For example, some users may install ArcGIS Pro to their C: drive while others install to their D: drive.

To fix the broken ArcGIS Pro references in an add-in, use the Fix ArcGIS Pro Reference utility included in the proapp-sdk-utilities.vsix. The steps below explain how to use the tool.

  1. Install the ArcGIS Pro SDK Utilities VSIX package (proapp-sdk-utilities.vsix).
  2. Open the add-in project that has broken references.
  3. Right-click the add-in project in the Visual Studio Solution Explorer and click Pro Fix References.
  4. Click Yes on the dialog box that asks you to proceed. Your broken references will now be fixed.

I changed the namespace in my ArcGIS Pro add-in project. Now ArcGIS Pro crashes when I attempt to load the add-in.

The Config.daml file also has references to the namespace used in the ArcGIS Pro add-in solution. It is not sufficient to only change the namespace in your class files. The Config.daml file namespace references also need to be changed, even though there will be no compilation errors if they are different.

Why is there a warning about keytips in Visual Studio when an ArcGIS Pro add is compiled?

When you create an add-in using ArcGIS Pro SDK for .NET, you will see a "The required attribute 'keytip' is missing." warning in Visual Studio. Keytips are a component of 508 compilance.

missing-keytip-issue.png

The templates cannot pick a unique keytip for you. If you want to provide a keytip select a letter combination that is unique for any given tab.

Migration from 10x

Is the ArcGIS Pro SDK a replacement for ArcObjects?

No. There will continue to be an ArcObjects SDK for customizing and extending ArcMap, ArcCatalog, and ArcScene. The Pro SDK is only for the the ArcGIS Pro application.

Where can I find information on migrating to ArcGIS Pro?

Please refer to the ProConcepts Migrating to ArcGIS Pro document for information on migrating customizations from ArcMap, as well as other resources. Also, information on overall migration to Pro can be found on the Migrating to ArcGIS Pro page.

Is the ArcGIS Pro SDK a replacement for ArcGIS Engine?

No. The ArcGIS Engine Developer Kit will continue to be provided as part of the Desktop .NET SDK.

Does my Arcobjects code work in ArcGIS Pro?

No. ArcObjects code must be rewritten using the Pro SDK to take advantage of the new classes and features in Pro.

Are custom geoprocessing functions supported in ArcGIS Pro?

No. You must use Python or ModelBuilder.

Are geodatabase class extensions (class and workspace) supported in Pro?

No. This is not planned.

Are plug-in data sources supported in Pro?

Yes. They are available at version 2.3.

Are Custom Layers supported?

No. This is not planned.

Are custom ArcObjects raster functions be supported in Pro?

No. The pattern in Pro is to use python to develop your custom functions. Refer to Python Raster Function.

2.0 Migration

Note: ArcGIS Pro 2.0 was a breaking change release.

Why did my 1.x add-ins and configurations stop working at ArcGIS Pro 2.0?

ArcGIS Pro 2.0 was a breaking change release. To get your add-ins and configurations working again at 2.0 or later you must follow the steps outlined in the migration procedure in the ProConcepts 2.0 Migration Guide.

You can check if your add-in is out of date by going running Pro and checking the add-in manager. Incompatible add-ins that have not been migrated will be shown as disabled.

Add-inManager.png

Why do I get a warning message saying my 1.x add-ins and configurations wouldn't register

ArcGIS Pro 2.0 was a breaking change release. As it was a breaking change release, the major version number of Pro was changed from "1.x" to "2.x". Add-ins and configurations are only forwards compatible across minor versions, they are not forwards compatible across major versions. Consult ProConcepts Advanced Topics Add-in Versioning for a description of the add-in versioning scheme. To register your 1.x add-ins and configurations at 2.1 you must migrate them to 2.1 first. The migration steps are outlined in the migration procedure in the ProConcepts 2.0 Migration Guide.

IncompatibleAddin.png

Are there breaking changes in the Pro API at 2.0?

Yes. The ArcGIS Pro 2.0 API changed or deleted types and members previously available at 1.x. Please consult the 2.0 Migration topics in the Table of Contents.

Will my 1.x add-ins and configurations work with ArcGIS Pro 2.0?

No. ArcGIS Pro 2.0 was a breaking change release. You must migrate your 1.x add-ins and configurations to 2.0 or 2.1. They will not load in Pro 2.x. Please consult the ProConcepts 2.0 Migration Guide for more details.

How do I migrate my 1.x add-in and configuration code?

A step by step procedure is provided in the ProConcepts 2.0 Migration Guide migration procedure. Further examples are provided in the ProSnippets Migrating to 2.0

Why do I get compiler errors when I compile my 1.x add-in or configuration with Pro 2.0?

ArcGIS Pro 2.0 was a breaking change release. Some of its types and members were changed and deprecated types and members were deleted. You will need to fix any compiler errors in your code. There are many resources available to you to help you migrate your 1.x add-ins and configurations. They can be accessed from the ProConcepts 2.0 Migration Guide.

Are the ArcGIS Pro .NET assemblies strong named at 2.0?

Yes. Changing the Pro assemblies to strong named was a breaking change. You must recompile your 1.x add-ins and configurations. The complete migration procedure is documented here.

Why did Pro 2.0 strong name its .NET assemblies?

Pro strong named its assemblies to support those 3rd parties who needed to strong name their own 3rd party assemblies (that reference Pro APIs). For example, developers may need to deploy multiple versions of their own proprietary assemblies (that reference Pro APIs) with their add-ins.

Because Pro 2.0+ strong named its .NET assemblies do I need to strong name my add-in or configuration?

No. A weak-named assembly can reference other weak-named or strong named assemblies.

Do I need to change my Pro assembly references in my Visual Studio project?

No but you must recompile. Recompilation will update the metadata of your add-in assembly to reflect the fact that it uses specific versions of the Pro assemblies (the version, in this case being the current version of Pro you have installed).

I recompiled my add-in and it still doesn't load. Why?

Please check that you changed the desktopVersion attribute of the AddinInfo xml element in your config.daml. The desktopVersion must be changed to "2.0". Consult ProConcepts 2.0 Migration Guide for more details.

Will I need to recompile my add-ins and configurations when the version of the Pro assemblies change in the future?

Yes, it is possible. An assembly that references a particular version of an assembly must be recompiled to change its reference to a different version. However ArcGIS Pro will distribute an assembly redirection file (ArcGISPro.exe.config located in the bin folder) that will redirect .NET from the previous version of a given Pro assembly to the current version of a given Pro assembly. This is the same as we currently do for Arcmap and server add-ins at 10.x.

Can add-ins use different versions of external assemblies with the same name?

Generally, yes, as long as the different versions of the assemblies you reference can be resolved by the .NET (this assumes the referenced assemblies are strong named). Similar to 10.x add-ins, ArcGIS Pro can use an app configuration file to auto forward assembly references.

Have the Pro WPF styles, brushes, and colors changed at 2.0?

Yes. The previous Pro WPF styles, brushes, and colors are still present in the ArcGIS Pro resources but they are no longer supported and should be considered internal for use by ArcGIS Pro only. You must change your UI styling that uses the Pro 1.x WPF resources to now reference the new Pro WPF styles, brushes, and colors made available for SDK use at 2.0. Please refer to the ProGuide Style Guide for more information.

Developing with ArcGIS Pro

    Migration


Framework

    Add-ins

    Configurations

    Customization

    Styling


Arcade


Content


CoreHost


DataReviewer


Editing


Geodatabase

    3D Analyst Data

    Plugin Datasources

    Topology

    Linear Referencing

    Object Model Diagram


Geometry

    Relational Operations


Geoprocessing


Knowledge Graph


Layouts

    Reports


Map Authoring

    3D Analyst

    CIM

    Graphics

    Scene

    Stream

    Voxel


Map Exploration

    Map Tools


Networks

    Network Diagrams


Parcel Fabric


Raster


Sharing


Tasks


Workflow Manager Classic


Workflow Manager


Reference

Clone this wiki locally