From 656b59c5089609c2665be5b2e9a8c69727b8f525 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 3 Feb 2016 08:33:31 -0800 Subject: [PATCH] Calculate the intermediate output path in CompileContext.NeedsRebuilding --- src/dotnet/commands/dotnet-build/CompileContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dotnet/commands/dotnet-build/CompileContext.cs b/src/dotnet/commands/dotnet-build/CompileContext.cs index d1d1d708a..14262c07f 100644 --- a/src/dotnet/commands/dotnet-build/CompileContext.cs +++ b/src/dotnet/commands/dotnet-build/CompileContext.cs @@ -433,6 +433,8 @@ namespace Microsoft.DotNet.Tools.Build var compilerIO = new CompilerIO(new List(), new List()); var calculator = project.GetOutputPathCalculator(outputPath); var binariesOutputPath = calculator.GetOutputDirectoryPath(buildConfiguration); + intermediaryOutputPath = calculator.GetIntermediateOutputDirectoryPath(buildConfiguration, intermediaryOutputPath); + // input: project.json compilerIO.Inputs.Add(project.ProjectFile.ProjectFilePath);