diff --git a/build/Common.prod.props b/build/Common.prod.props
index 915644b775..90119d36da 100644
--- a/build/Common.prod.props
+++ b/build/Common.prod.props
@@ -13,11 +13,17 @@
-
+
-
-
+
+
+
diff --git a/build/PreBuild.ps1 b/build/PreBuild.ps1
index 847c4d52c7..64d51872e3 100644
--- a/build/PreBuild.ps1
+++ b/build/PreBuild.ps1
@@ -1,26 +1,31 @@
-param([string]$package, [string]$version)
+param(
+ [string]$package,
+ [string]$version,
+ [string]$workDir = ".\LastMajorVersionBinaries"
+)
-$workDir = "..\LastMajorVersionBinaries"
if (-Not (Test-Path $workDir))
{
- Write-Host "Working directory for previous package versions not found, creating..."
+ Write-Host "Working directory for compatibility check packages '$workDir' not found, creating..."
New-Item -Path $workDir -ItemType "directory" | Out-Null
}
if (Test-Path -Path "$workDir\$package.$version.zip")
{
- Write-Debug "Previous package version already downloaded"
+ Write-Debug "Previous package $package@$version already downloaded for compatibility check"
}
else
{
- Write-Host "Retrieving $package @$version for compatibility check"
+ Write-Host "Retrieving package $package@$version for compatibility check"
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/$package/$version -Outfile "$workDir\$package.$version.zip"
}
+
if (Test-Path -Path "$workDir\$package\$version\lib")
{
- Write-Debug "Previous package version already extracted"
+ Write-Debug "Previous package $package@$version already extracted to '$workDir\$package\$version\lib'"
}
else
{
+ Write-Host "Extracting package $package@$version from '$workDir\$package.$version.zip' to '$workDir\$package\$version' for compatibility check"
Expand-Archive -LiteralPath "$workDir\$package.$version.zip" -DestinationPath "$workDir\$package\$version" -Force
}