Merge pull request #2337 from dotnet/pakrym/hasruntimeoutput

Bring `has runtime output` check back
This commit is contained in:
Pavel Krymets 2016-04-07 13:37:09 -07:00
commit ed05e164fb

View file

@ -489,7 +489,10 @@ namespace Microsoft.DotNet.Tools.Build
private void MakeRunnable() 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 outputPaths = runtimeContext.GetOutputPaths(_args.ConfigValue, _args.BuildBasePathValue, _args.OutputValue);
var libraryExporter = runtimeContext.CreateExporter(_args.ConfigValue, _args.BuildBasePathValue); var libraryExporter = runtimeContext.CreateExporter(_args.ConfigValue, _args.BuildBasePathValue);