![Piotr Puszkiewicz](/assets/img/avatar_default.png)
Decompose into self-contained granular components Provide reasonable defaults for cross cutting concerns, allowing for independent execution of steps Start unifying Windows/Bash architecture fix Bash CI scripts dockerbuild.sh _common.sh path Add missing restore-packages.sh Copy/paste issues Quote $SOURCE fix .gitignore PR Feedback Merge in @SridarMS's work to avoid redownloading DNX enabling build of dotnet-build merge in @SridharMS's CentOS changes Enable building FSC enable restoring specific subdirectories Fix dnx version check Add missed dependency Fix pathing to tests Match Linux build version to Windows, fixing linux tests as a side effect. workaround for coreclr#2215 fix pathing issue disable building in docker BUILD_IN_DOCKER was set, somehow... fix headers
46 lines
1.4 KiB
PowerShell
46 lines
1.4 KiB
PowerShell
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
param(
|
|
[Parameter(Mandatory=$true)][string]$toolsDir,
|
|
[string]$versionSuffix = ""
|
|
)
|
|
|
|
# unify trailing backslash
|
|
$toolsDir = $toolsDir.TrimEnd('\')
|
|
$versionArg = ""
|
|
if ($versionSuffix -ne "") {
|
|
$versionArg = "--version-suffix $VersionSuffix"
|
|
}
|
|
|
|
. "$PSScriptRoot\..\..\scripts\common\_common.ps1"
|
|
|
|
$IntermediatePackagesDir = "$RepoRoot\artifacts\packages\intermediate"
|
|
$PackagesDir = "$RepoRoot\artifacts\packages"
|
|
|
|
New-Item -ItemType Directory -Force -Path $IntermediatePackagesDir
|
|
|
|
$Projects = @(
|
|
"Microsoft.DotNet.Cli.Utils",
|
|
"Microsoft.DotNet.ProjectModel",
|
|
"Microsoft.DotNet.ProjectModel.Workspaces",
|
|
"Microsoft.DotNet.Runtime",
|
|
"Microsoft.Extensions.Testing.Abstractions",
|
|
"Microsoft.DotNet.ProjectModel.Loader"
|
|
)
|
|
|
|
foreach ($ProjectName in $Projects) {
|
|
$ProjectFile = "$RepoRoot\src\$ProjectName\project.json"
|
|
& $toolsDir\dotnet restore "$ProjectFile"
|
|
if (!$?) {
|
|
Write-Host "$toolsDir\dotnet restore failed for: $ProjectFile"
|
|
Exit 1
|
|
}
|
|
& $toolsDir\dotnet pack "$ProjectFile" --output "$IntermediatePackagesDir" $versionArg
|
|
if (!$?) {
|
|
Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile"
|
|
Exit 1
|
|
}
|
|
}
|
|
|
|
Get-ChildItem $IntermediatePackagesDir -Filter *.nupkg | Copy-Item -Destination $PackagesDir
|