Select to view content in your preferred language

esriAddIn not being created with VS 2012 & 10.4

3310
3
Jump to solution
04-19-2016 07:13 AM
DaleShearer
Frequent Contributor

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

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

According to this, VS2012 is not supported for ArcGIS 10.4. Just 2013 and 2015

View solution in original post

0 Kudos
3 Replies
KenBuja
MVP Esteemed Contributor

According to this, VS2012 is not supported for ArcGIS 10.4. Just 2013 and 2015

0 Kudos
DaleShearer
Frequent Contributor

Yeah, that could be a problem with VB2012.  I do have VB2013 installed so I will upgrade them with it.  It was just odd that the projects were compiling and everything looked good until this one application.

I will be back when I start compiling them in VS2013 and let you know what happens.

0 Kudos
DaleShearer
Frequent Contributor

I am starting to compile my addin's in VS 2013 and the esriAddin's are not being created.  References are set to 10.4.0.0 and the application is set to the .NET Framework 4.5.

No errors.

0 Kudos