From e3a8dacc8e2edfd6eb43c5840b85a3526b6ee33c Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Fri, 22 Jan 2016 17:14:35 -0800 Subject: [PATCH] Building the projects that are going to be packaged separately so that they build for all the Tfms. The package step will then pick it up and package all the correct Tfms as well. --- scripts/compile/compile-stage.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/compile/compile-stage.ps1 b/scripts/compile/compile-stage.ps1 index ce8a8dc95..04144944c 100644 --- a/scripts/compile/compile-stage.ps1 +++ b/scripts/compile/compile-stage.ps1 @@ -35,6 +35,16 @@ $Projects = @( "Microsoft.Extensions.Testing.Abstractions" ) +# We need to keep the building of these projects in a separate step so that they can be signed. +$ProjectsToPack = @( + "Microsoft.DotNet.Cli.Utils", + "Microsoft.DotNet.ProjectModel", + "Microsoft.DotNet.ProjectModel.Loader", + "Microsoft.DotNet.ProjectModel.Workspaces", + "Microsoft.Extensions.DependencyModel", + "Microsoft.Extensions.Testing.Abstractions" +) + $BinariesForCoreHost = @( "csi" "csc" @@ -91,6 +101,15 @@ if (! (Test-Path $runtimeBinariesOutputDir)) { cp $runtimeBinariesOutputDir\* $RuntimeOutputDir -force -recurse +# Build the projects that we are going to ship as nuget packages +$ProjectsToPack | ForEach-Object { + dotnet build --output "$CompilationOutputDir\bin" --configuration "$Configuration" "$RepoRoot\src\$_" + if (!$?) { + Write-Host Command failed: dotnet build --native-subdirectory --output "$CompilationOutputDir\bin" --configuration "$Configuration" "$RepoRoot\src\$_" + exit 1 + } +} + # Clean up bogus additional files $FilesToClean | ForEach-Object { $path = Join-Path $RuntimeOutputDir $_