From 716ff73f694d90ce78e5f007646b062aefbe3b47 Mon Sep 17 00:00:00 2001 From: Senthil Date: Mon, 13 Jun 2016 14:40:11 -0700 Subject: [PATCH] Fix target chaining into hostfxr --- build_projects/dotnet-cli-build/DebTargets.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build_projects/dotnet-cli-build/DebTargets.cs b/build_projects/dotnet-cli-build/DebTargets.cs index 0fab6aa82..d53377873 100644 --- a/build_projects/dotnet-cli-build/DebTargets.cs +++ b/build_projects/dotnet-cli-build/DebTargets.cs @@ -74,8 +74,16 @@ namespace Microsoft.DotNet.Cli.Build return c.Success(); } - + [Target(nameof(InstallSharedHost))] + public static BuildTargetResult InstallHostFxr(BuildTargetContext c) + { + InstallPackage(c.BuildContext.Get("HostFxrInstallerFile")); + + return c.Success(); + } + + [Target(nameof(InstallHostFxr))] public static BuildTargetResult InstallSharedFramework(BuildTargetContext c) { InstallPackage(c.BuildContext.Get("SharedFrameworkInstallerFile"));