From 2fe913ae8f96ff51c3d6c0bc89100fd62be1a3f5 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Tue, 9 Feb 2016 15:41:45 -0800 Subject: [PATCH] Fix incremental build --- src/dotnet/commands/dotnet-build/CompileContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/commands/dotnet-build/CompileContext.cs b/src/dotnet/commands/dotnet-build/CompileContext.cs index 1d7c047f1..21fa11e06 100644 --- a/src/dotnet/commands/dotnet-build/CompileContext.cs +++ b/src/dotnet/commands/dotnet-build/CompileContext.cs @@ -462,7 +462,7 @@ namespace Microsoft.DotNet.Tools.Build AddDependencies(dependencies, compilerIO); var allOutputPath = new List(calculator.CompilationFiles.All()); - if (!string.IsNullOrEmpty(project.RuntimeIdentifier)) + if (project.ProjectFile.HasRuntimeOutput(buildConfiguration)) { allOutputPath.AddRange(calculator.RuntimeFiles.All()); }