User-1784077269 posted
Environment: Azure App Services, Team Services(Visual Studio Online).
I pushed my VS solution into the Team Services on cloud via Git, and link the Azure Web App Service to the solution i pushed in the Team Services, then i did some modification to the code on my laptop, then check in and push the code to the team service.
the team service generated a build job automatically, but unfortunately i got the summary error below:
The field 'user_group_price._goods_id' is assigned but its value is never used
The variable 'strSql4' is declared but never used
The variable 'ex' is declared but never used
The variable 'ex' is declared but never used
The variable 'ex' is declared but never used
The variable 'exp' is declared but never used
The variable 'ex' is declared but never used
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3009, 0)
Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath. Known ProviderOptions are:.)
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Here is the diagnostics information:
Run MSBuild00:03:50
C:\LR\MMS\Services\Mms\BuildProvisioner\Tools\nuget.exe restore "C:\a\src\DTcms.sln" -NonInteractive
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe /nologo /noconsolelogger "C:\a\src\DTcms.sln" /nr:False /fl /flp:"logfile=C:\a\src\DTcms.log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:CreatePackageOnPublish=true /p:DeployIisAppPath=dtshop /m /p:OutDir="C:\a\bin\\" /p:VCBuildOverride="C:\a\src\DTcms.sln.vsprops" /dl:WorkflowCentralLogger,"C:\LR\MMS\Services\Mms\BuildProvisioner\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/19;IgnoreDuplicateProjects=False;InformationNodeId=13;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;LogProjectNodes=True;LogWarnings=True;TFSUrl=https://dingjianrui.visualstudio.com/;"*WorkflowForwardingLogger,"C:\LR\MMS\Services\Mms\BuildProvisioner\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;" /p:BuildId="bcd2d3bd-cd3a-423b-91e0-f70541f8443e,vstfs:///Build/Build/19" /p:BuildLabel="dtshop_CD_20160630.2" /p:BuildTimestamp="Thu, 30 Jun 2016 23:33:42 GMT" /p:BuildDefinition="dtshop_CD"
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Since the build server provided by the team services is invisible to me, i really don't know how to troubleshoot this issue. according to the diagnostics information above, how the build server detect that it should use the msbuild version '14.0'? and what
is the root cause of this issue?
Cheers.
William