From 13aee118e97e87f88ee5f5ab97d7bf9fd133f4ec Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 7 Apr 2016 08:08:48 -0700 Subject: [PATCH] Bring has runtime output back --- src/dotnet/commands/dotnet-build/CompileContext.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dotnet/commands/dotnet-build/CompileContext.cs b/src/dotnet/commands/dotnet-build/CompileContext.cs index 15c1e5dec..d231dd33e 100644 --- a/src/dotnet/commands/dotnet-build/CompileContext.cs +++ b/src/dotnet/commands/dotnet-build/CompileContext.cs @@ -489,7 +489,10 @@ namespace Microsoft.DotNet.Tools.Build private void MakeRunnable() { - var runtimeContext = _rootProject.CreateRuntimeContext(_args.GetRuntimes()); + var runtimeContext = _rootProject.ProjectFile.HasRuntimeOutput(_args.ConfigValue) ? + _rootProject.CreateRuntimeContext(_args.GetRuntimes()) : + _rootProject; + var outputPaths = runtimeContext.GetOutputPaths(_args.ConfigValue, _args.BuildBasePathValue, _args.OutputValue); var libraryExporter = runtimeContext.CreateExporter(_args.ConfigValue, _args.BuildBasePathValue);