Started by user anonymousUpdating http://subversion-repo/EngineeringServices/DesktopGISUtilities/DOTNET/WaterEditorExtensionAt revision 1241no change for http://subversion-repo/EngineeringServices/DesktopGISUtilities/DOTNET/WaterEditorExtension since the previous buildPath To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exeExecuting command: cmd.exe /C C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe c:\workspace\dotnet\watereditor10\watereditorextension.csproj && exit %%ERRORLEVEL%%[workspace] $ cmd.exe /C C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe c:\workspace\dotnet\watereditor10\watereditorextension.csproj && exit %%ERRORLEVEL%%Microsoft (R) Build Engine Version 3.5.30729.1[Microsoft .NET Framework, Version 2.0.50727.3623]Copyright (C) Microsoft Corporation 2007. All rights reserved.Build started 11/29/2011 11:20:08 AM.Project "c:\workspace\dotnet\watereditor10\watereditorextension.csproj" on node 0 (default targets).Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5".C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets(36,5): error MSB4062: The "ValidateAddInXMLTask" task could not be loaded from the assembly ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. Could not load file or assembly 'Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.Done Building Project "c:\workspace\dotnet\watereditor10\watereditorextension.csproj" (default targets) -- FAILED.Build FAILED."c:\workspace\dotnet\watereditor10\watereditorextension.csproj" (default target) (1) ->(PrePackageArcGISAddIn target) -> C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets(36,5): error MSB4062: The "ValidateAddInXMLTask" task could not be loaded from the assembly ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. Could not load file or assembly 'Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available. 0 Warning(s) 1 Error(s)Time Elapsed 00:00:00.68Build step 'Build a Visual Studio project or solution using MSBuild.' marked build as failureFinished: FAILURE
This worked for me on my Jenkins machine with only VS 2010 Shell installed, I had to install the VS 2010 SDK (not sp1 because I dont have full VS 2010 installed)
First, I check that Microsoft.VisualStudio.Shell.9.0 was in the GAC, It was not there... tVisual Studio Command Prompt --> Run as Administrator --> gacutil /i Microsoft.VisualStudio.Shell.9.0.dll, but it failed because I was not giving the full path of the dll, so I search for it in the Visual Studio 2008 SDK, and Voila!!! it appear in the GAC
but the project still does not compile, so, I chec in the real GAC:
C:\Windows\Microsoft.NET\assembly
and found that the file does not exist neither in the GAC_32, nor GAC_64 folder, moreover, it exists in the folder GAC_MSIL, so....i took the folder C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Shell.9.0 and copied it to the folders GAC_32 and GAC_64.
Now the project compiles.
Digging in the error, I arrive to the C:\Program Files (x86)\MSBuild\Esri\ESRI.ArcGIS.AddIns.targets, it calls some tasks from ESRI.ArcGIS.AddIns.SDK.dll, but I don't get which is the difference, between VS2010 and VS2013....does they use different MSBuild versions?
Well, I tried everything described here: install the SDK of VS2010, run my VS as admin, Create the build for x86.....but nothing ever happen...I got the same error I'm trying to compile an Add-in in VS 2013
I have a similar problem in that I use Visual Studio 2012 which is not supported by 10.1.What I did was to have the Visual Studio project just build the DLL, i.e. I did not use the ESRI template. I then added a step which creates the add-in "package" myself.
I have this problem, too.I also found that the missing file Microsoft.VisualStudio.Shell.9.0.DLL is part of the Visual Studio SDK. So I downloaded the VS2010 SDK and installed it. Then I had to manually copy the file to the folder C:/Windows/Microsoft.NET/Framework64/v4.0.30319/ (the dll didn't register to the GAC)....I have no idea where to get the ESRI.ArcGIS.AddIns.SDK.resources.DLL from!
I still get stuck with the same ValidateAddInXMLTask error. I'm still tinkering with some configurations though. Registering the Shell.9.0.dll with the gac didn't solve my issue. I'm running into a version conflict now with the Shell dll (version I have is 10.0) from my log viewer:
*** Assembly Binder Log Entry (6/18/2012 @ 8:35:07 AM) *** The operation failed. Bind result: hr = 0x80131040. No description available. Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = CWW\LBadgerow LOG: DisplayName = Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified) LOG: Appbase = file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = MSBuild.exe Calling assembly : ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Microsoft.VisualStudio.Shell.9.0.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.VisualStudio.Shell.9.0.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: Microsoft.VisualStudio.Shell.9.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a WRN: Comparing the assembly name resulted in the mismatch: Major Version ERR: The assembly reference did not match the assembly definition found. ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
4) Throw it in the GAC.
Let me know if this works for you guys -- I'm curious to see if there are other issues.
-- it's only when TeamCity is calling that it has this odd behavior.
I have no idea where to get the ESRI.ArcGIS.AddIns.SDK.resources.DLL from!
To give some more details of my issues (which is the same and is still unresolved):I only have this issue on our Continuous Integration agent server. We're using TeamCity to perform the build. We're using their solution builder and simply pointing to our .NET solution. Interestingly, if I load the solution on the same box into Visual Studio 2010, I can build with no errors -- it's only when TeamCity is calling that it has this odd behavior.
C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets (109): Missing required ArcGIS component(s). Make sure you have a valid ArcGIS runtime install.
*** Assembly Binder Log Entry (13.4.2012 @ 10:42:38) *** The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Running under executable C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = xyz LOG: DisplayName = ESRI.ArcGIS.AddIns.SDK.resources, Version=10.0.0.0, Culture=en-US, PublicKeyToken=8fc3cc631e44ad86 (Fully-specified) LOG: Appbase = file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = MSBuild.exe Calling assembly : ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Post-policy reference: ESRI.ArcGIS.AddIns.SDK.resources, Version=10.0.0.0, Culture=en-US, PublicKeyToken=8fc3cc631e44ad86 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/en-US/ESRI.ArcGIS.AddIns.SDK.resources.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/en-US/ESRI.ArcGIS.AddIns.SDK.resources/ESRI.ArcGIS.AddIns.SDK.resources.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/en-US/ESRI.ArcGIS.AddIns.SDK.resources.EXE. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/en-US/ESRI.ArcGIS.AddIns.SDK.resources/ESRI.ArcGIS.AddIns.SDK.resources.EXE. LOG: All probing URLs attempted and failed.
Did you ever get any resolution on this? I'm experiencing the exact same problem.
C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets(36,5): error MSB4062: The "ValidateAddInXMLTask" task could not be loaded from the assembly ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. Could not load file or assembly 'Microsoft.VisualStudio.Shell.9.0, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of itsdependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. Done Building Project "c:\workspace\dotnet\watereditor10\watereditorextension.csproj" (default targets) -- FAILED.Build FAILED.
<UsingTask AssemblyName="ESRI.ArcGIS.AddIns.SDK, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" TaskName="ValidateAddInXMLTask" /> <Target Name="PrePackageArcGISAddIn"> <ValidateAddInXMLTask ContentFiles="@(AddInContent)" BuildProjectPath="$(ProjectPath)" AssemblyName="$(TargetFileName)" TargetFrameworkVersion="$(TargetFrameworkVersion)" /> </Target>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.