PROBLEM
In version 2.5, ArcGIS Pro has changed its Minimum .NET Target from 4.6.1 to 4.8. If code changes are made to an add-in previously created in version 2.0 through 2.4, compiler errors are returned when build is attempted, as shown in the following image:
The assembly references for ArcGIS Pro may also show as broken:
In version 2.5, the minimum .NET Target Framework has been changed to 4.8. To recompile an add-in, previously created in version 2.0 through 2.4, using version 2.5 or later, the 'Target framework' must be changed in the Application Properties to .NET Framework 4.8.
<AddInInfo id="{...}" version="1.0" desktopVersion="2.5">
Note: The release and build number components of the desktopVersion are not important.
Note: Visual Studio may require a restart to clear any broken links shown in the ArcGIS Pro assembly references.
Get help from ArcGIS experts
Download the Esri Support App