fix bug in pack command (acciddentally reverted prev fix during merge conflict)
This commit is contained in:
parent
ab9d1c48a8
commit
38a95de882
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
var configValue = configuration.Value() ?? Cli.Utils.Constants.DefaultConfiguration;
|
||||
var outputValue = output.Value();
|
||||
|
||||
return BuildPackage(path, configValue, outputValue, intermediateOutput.Value()) ? 1 : 0;
|
||||
return TryBuildPackage(path, configValue, outputValue, intermediateOutput.Value()) ? 0 : 1;
|
||||
});
|
||||
|
||||
try
|
||||
|
@ -80,7 +80,7 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
}
|
||||
}
|
||||
|
||||
private static bool BuildPackage(string path, string configuration, string outputValue, string intermediateOutputValue)
|
||||
private static bool TryBuildPackage(string path, string configuration, string outputValue, string intermediateOutputValue)
|
||||
{
|
||||
var contexts = ProjectContext.CreateContextForEachFramework(path);
|
||||
var project = contexts.First().ProjectFile;
|
||||
|
|
Loading…
Add table
Reference in a new issue