rename variable to buildCommand

This commit is contained in:
Krzysztof Wicher 2017-02-16 13:56:27 -08:00
parent e6578eeb14
commit 6f1ea62bc9

View file

@ -24,7 +24,7 @@ namespace Microsoft.DotNet.Tools.Build
public static BuildCommand FromArgs(string[] args, string msbuildPath = null)
{
var ret = new BuildCommand();
var buildCommand = new BuildCommand();
CommandLineApplication app = new CommandLineApplication(throwOnUnexpectedArg: false);
app.Name = "dotnet build";
@ -105,18 +105,18 @@ namespace Microsoft.DotNet.Tools.Build
msbuildArgs.AddRange(app.RemainingArguments);
ret._forwardingApp = new MSBuildForwardingApp(msbuildArgs, msbuildPath);
buildCommand._forwardingApp = new MSBuildForwardingApp(msbuildArgs, msbuildPath);
return 0;
});
int exitCode = app.Execute(args);
if (ret._forwardingApp == null)
if (buildCommand._forwardingApp == null)
{
throw new CommandCreationException(exitCode);
}
return ret;
return buildCommand;
}
public static int Run(string[] args)