diff --git a/src/dotnet/commands/dotnet-build/Program.cs b/src/dotnet/commands/dotnet-build/Program.cs index 77c2f0870..1034c70ab 100644 --- a/src/dotnet/commands/dotnet-build/Program.cs +++ b/src/dotnet/commands/dotnet-build/Program.cs @@ -21,8 +21,6 @@ namespace Microsoft.DotNet.Tools.Build public static BuildCommand FromArgs(string[] args, string msbuildPath = null) { - DebugHelper.HandleDebugSwitch(ref args); - var msbuildArgs = new List(); var parser = Parser.Instance; @@ -35,7 +33,7 @@ namespace Microsoft.DotNet.Tools.Build var appliedBuildOptions = result["dotnet"]["build"]; - if (result.HasOption("--no-incremental")) + if (appliedBuildOptions.HasOption("--no-incremental")) { msbuildArgs.Add("/t:Rebuild"); }