This project has moved. For the latest updates, please go here.
1
Vote

Invoke-msbuild getting error when triggered through build definition

description

We are getting below error for few of the projects where rest of the projects getting compiled successfully.

Script Block

$SolutionOutputPath=Join-Path $AgentFolderPath "\Src\DOTNET\Common\bin"
$BuildParameters="/target:Build /property:Configuration=Release /p:OutDir=""$SolutionOutputPath"";Platform=""AnyCPU"" /verbosity:Quiet"
$SolutionPath=Join-Path $AgentFolderpath "\Src\DOTNET\NonWebApps\ShipmentHistoryUpdateJob\ShipmentHistoryUpdateJob.csproj"
Invoke-MsBuild -Path $SolutionPath -MsBuildParameters $BuildParameters

Script Block

Invoke-MsBuild : Unexpect error occured while building "D:_yyy2\OEM\POC.SM.M_1
_PS\src\Src\DOTNET\NonWebApps\ShipmentHistoryUpdateJob\ShipmentHistoryUpdateJob.csproj": Process with an Id of 10032 is not
running.
At D:_yyy2\POC.SM.M_1_PS\src\Build\Library\InvokeSolutions.ps1:716 char:1
  • Invoke-MsBuild -Path $SolutionPath -MsBuildParameters $BuildParameters
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
    tion
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
    n,Invoke-MsBuild

comments

deadlydog wrote May 25, 2016 at 3:20 PM

This issue has been migrated to GitHub at https://github.com/deadlydog/Invoke-MsBuild/issues/3