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.

This commit is contained in:
Livar Cunha 2016-01-22 17:14:35 -08:00 committed by Livar Cunha
parent 3656a06f49
commit e3a8dacc8e

View file

@ -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 $_