AnsweredAssumed Answered

esriAddIn not being created with VS 2012 & 10.4

Question asked by dalejs on Apr 19, 2016
Latest reply on Apr 19, 2016 by dalejs

Hi.  I am upgrading from 10.3 to 10.4. so I am resetting the references and re-compiling all of my applications in VS2012.

  The first error I encountered was:  Could not load file or assembly 'ESRI.ArcGIS.Desktop.AddIns, Version=10.4.0.0,
Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies.  The system cannot find the file specified.

 

I had no issues with 'ESRI.ArcGIS.Desktop.AddIns' in other applications I had upgraded so I thought this was odd.  I searched on the internet and found the solution of going to Properties:  Compile:  and unchecking 'Register for COM interop'

 

No more errors, but I am not getting the esriAddIn file when I compile.  Way back when I upgraded to 10.3 I had to go into the vbproj file and the set the ESRI.ArcGIS.AddIns.targets to ESRI.ArcGIS.AddIns.11.targets.  Those are set.

 

In looking through the vbproj file the following are not set to 4.0, though the references are set to 10.4.0.0 and the application is set to the .NET Framework 4.5.

 

<SchemaVersion>2.0</SchemaVersion>

<OldToolsVersion>3.5</OldToolsVersion>

<ApplicationRevision>0</ApplicationRevision>

<ApplicationVersion>1.0.0.%2a</ApplicationVersion>

<Reference Include="ESRI.ArcGIS.ArcMapUI, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">

<Reference Include="ESRI.ArcGIS.Desktop.AddIns, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">

<Reference Include="ESRI.ArcGIS.Framework, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">

<Reference Include="ESRI.ArcGIS.System, Version=10.3.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL">

<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>

<ProductName>.NET Framework 3.5 SP1</ProductName>

<ProductName>Windows Installer 3.1</ProductName>

 

Thank you for taking a look at this, Dale

Outcomes