Refactor output directory code
This commit is contained in:
parent
4908436958
commit
0f82ae37f3
49 changed files with 836 additions and 396 deletions
|
@ -12,4 +12,16 @@ $env:PATH = "$Stage1Dir\bin;$env:PATH"
|
|||
# Compile
|
||||
_ "$RepoRoot\scripts\compile\compile-stage.ps1" @("$Tfm","$Rid","$Configuration","$Stage2Dir","$RepoRoot","$HostDir", "$Stage2CompilationDir")
|
||||
|
||||
|
||||
# Build the projects that we are going to ship as nuget packages
|
||||
. $REPOROOT\scripts\package\projectsToPack.ps1
|
||||
|
||||
$ProjectsToPack | ForEach-Object {
|
||||
dotnet build --build-base-path "$Stage2Dir\forPackaging" --configuration "$Configuration" "$RepoRoot\src\$_"
|
||||
if (!$?) {
|
||||
Write-Host Command failed: dotnet build --native-subdirectory --build-base-path "$Stage2Dir\forPackaging" --configuration "$Configuration" "$RepoRoot\src\$_"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
$env:PATH=$StartPath
|
|
@ -12,8 +12,6 @@ param(
|
|||
[Parameter(Mandatory=$true)][string]$HostDir,
|
||||
[Parameter(Mandatory=$true)][string]$CompilationOutputDir)
|
||||
|
||||
. $REPOROOT\scripts\package\projectsToPack.ps1
|
||||
|
||||
$Projects = loadBuildProjectList
|
||||
|
||||
$BinariesForCoreHost = @(
|
||||
|
@ -48,15 +46,6 @@ if (!$?) {
|
|||
Exit 1
|
||||
}
|
||||
|
||||
# Build the projects that we are going to ship as nuget packages
|
||||
$ProjectsToPack | ForEach-Object {
|
||||
dotnet build --output "$CompilationOutputDir\forPackaging" --configuration "$Configuration" "$RepoRoot\src\$_"
|
||||
if (!$?) {
|
||||
Write-Host Command failed: dotnet build --native-subdirectory --output "$CompilationOutputDir\forPackaging" --configuration "$Configuration" "$RepoRoot\src\$_"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
# Clean up bogus additional files
|
||||
$FilesToClean | ForEach-Object {
|
||||
$path = Join-Path $RuntimeOutputDir $_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue