Hi all,
Has anyone been successful in compiling a C# soe project via msdbuild.exe from the command line? The command is failing for us, as shown in the log below. Our goal is to setup up a CI server.
.\MSBuild.exe "C:\test\TestSoe.csproj" /property:Configuration=Debug /t:rebuild
It is failing to find the GenerateServerAddInXml task.
Log
CopyFilesToOutputDirectory: Copying file from "obj\Debug\TestSoe.dll" to "bin\Debug\TestSoe.dll". TestSoe -> C:\test\TestSoe\bin\Debug\TestSoe.dll Copying file from "obj\Debug\TestSoe.pdb" to "bin\Debug\TestSoe.pdb". C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.Server.11.targets(49,5): error MSB4036: The "GenerateServerAddInXml" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask int erface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin\amd64" d irectory. Done Building Project "C:\testTestSoe.csproj" (rebuild target(s)) -- FAILED. |
We are using:
- Windows 7.
- VS 12 update 5.
- .NET 4.5.51209.
- ArcGIS 10.3.1.
Any suggestions welcome.Thanks