diff --git a/scripts/dotnet-cli-build/CompileTargets.cs b/scripts/dotnet-cli-build/CompileTargets.cs index cfbf3b1c0..cf213f6da 100644 --- a/scripts/dotnet-cli-build/CompileTargets.cs +++ b/scripts/dotnet-cli-build/CompileTargets.cs @@ -51,7 +51,7 @@ namespace Microsoft.DotNet.Cli.Build // Moving PrepareTargets.RestorePackages after PackagePkgProjects because managed code depends on the // Microsoft.NETCore.App package that is created during PackagePkgProjects. - [Target(nameof(PrepareTargets.Init), nameof(PackagePkgProjects), nameof(PrepareTargets.RestorePackages), nameof(CompileStage1), nameof(CompileStage2))] + [Target(nameof(PrepareTargets.Init), nameof(CompileCoreHost), nameof(PackagePkgProjects), nameof(PrepareTargets.RestorePackages), nameof(CompileStage1), nameof(CompileStage2))] public static BuildTargetResult Compile(BuildTargetContext c) { return c.Success(); @@ -145,7 +145,7 @@ namespace Microsoft.DotNet.Cli.Build return c.Success(); } - [Target(nameof(CompileCoreHost))] + [Target] public static BuildTargetResult PackagePkgProjects(BuildTargetContext c) { var buildVersion = c.BuildContext.Get("BuildVersion");