Merge branch 'rel/1.0.0-msbuild2' into feature/msbuild
This commit is contained in:
commit
2f4fdb31d3
|
|
@ -136,7 +136,13 @@ namespace NuGetPackager
|
||||||
Console.WriteLine("command: ".Bold().Blue() + pInfo.FileName);
|
Console.WriteLine("command: ".Bold().Blue() + pInfo.FileName);
|
||||||
Console.WriteLine("arguments: ".Bold().Blue() + pInfo.Arguments);
|
Console.WriteLine("arguments: ".Bold().Blue() + pInfo.Arguments);
|
||||||
|
|
||||||
Process.Start(pInfo).WaitForExit();
|
var process = Process.Start(pInfo);
|
||||||
|
process.WaitForExit();
|
||||||
|
|
||||||
|
if (process.ExitCode != 0)
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException("NuGet exited with non-zero code " + process.ExitCode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<string> GetNugetExePath()
|
private async Task<string> GetNugetExePath()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue