AnsweredAssumed Answered

Error on using an SOE project Template

Question asked by brenth on Mar 12, 2013
Latest reply on Mar 13, 2013 by brenth
In visual studio I create a project and use the REST Template.

Without doing anything else, I build the project and get

Could not load file or assembly 'ESRI.ArcGIS.SOESupport, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified.

I verified that the file in the references exists on the computer.  It is, however, version 10.1.0.3035 - as are the rest of the referenced ESRI assemblies in the project which also exist.  I suppose that means the problem must be "one of its dependencies".  How do I figure out what the dependencies are?


Thanks

UPDATE: It has something to do with this line in the csproj file:

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

When I comment it out, it builds properly.

Outcomes