5

I have a ArcGIS 10.0 AddIn project that I've succeesfully re-targeted to 10.3. I can successfully compile (Visual Studio 2012). and works as expected in ArcMap 10.3.1. But when I attempt to add a new component

enter image description here

I get this error:

Invalid ArcGIS Add-in Project. Unable to add new Add-in item to this project.

enter image description here

Has anyone else encountered this issue?

  • could you give us a sample addin so we can reproduce the error? – Farid Cheraghi Jan 6 '16 at 15:25
4

After I manually added a new button, I circled back to the SDK AddIn Component Wizard Issue and figured out how to resolve.

Before posting this question, I did attempt to change the targets in the csproj file (they were incorrect) but that did not correct the issue. But that ended up being the issue.

After updating the targets in the csproj and reloading the solution in Visual Studio, I still received the error.

Then I closed the solution, and then opened the solution. I still received the error.

I had to completely exit Visual Studio 2012 and restart. And then open the AddIn solution and then attempt to add a new ArcGIS component. At this point it was successful.

My csproj change was:

<Import Project="$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets" Condition="Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets')" />

to

<Import Project="$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.11.targets" Condition="Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.11.targets')" />

and change

<Warning Text="Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK component(s)." Condition="!Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets')" />

to

<Warning Text="Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK component(s)." Condition="!Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.11.targets')" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.