From fa9a9dc7b4f339b34a12e6aa2300b8011462e2df Mon Sep 17 00:00:00 2001 From: Piotr Puszkiewicz Date: Tue, 16 Feb 2016 19:31:09 -0800 Subject: [PATCH] fix up casing of PS1 environment variables --- packaging/nuget/package.ps1 | 2 +- scripts/common/_common.ps1 | 2 +- scripts/publish/publish.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/nuget/package.ps1 b/packaging/nuget/package.ps1 index 8f60481b9..14b3b3385 100644 --- a/packaging/nuget/package.ps1 +++ b/packaging/nuget/package.ps1 @@ -24,7 +24,7 @@ New-Item -ItemType Directory -Force -Path $IntermediatePackagesDir foreach ($ProjectName in $ProjectsToPack) { $ProjectFile = "$RepoRoot\src\$ProjectName\project.json" - & $toolsDir\dotnet pack "$ProjectFile" --no-build --build-base-path "$Stage2CompilationDir\forPackaging" --output "$IntermediatePackagesDir" --configuration "$Configuration" $versionArg $versionSuffix + & $toolsDir\dotnet pack "$ProjectFile" --no-build --build-base-path "$Stage2CompilationDir\forPackaging" --output "$IntermediatePackagesDir" --configuration "$env:CONFIGURATION" $versionArg $versionSuffix if (!$?) { Write-Host "$toolsDir\dotnet pack failed for: $ProjectFile" Exit 1 diff --git a/scripts/common/_common.ps1 b/scripts/common/_common.ps1 index dbc1101ce..35a469516 100644 --- a/scripts/common/_common.ps1 +++ b/scripts/common/_common.ps1 @@ -27,4 +27,4 @@ $env:Channel = "$env:RELEASE_SUFFIX" setEnvIfDefault "DOTNET_INSTALL_DIR" "$RepoRoot\.dotnet_stage0\win7-x64" setEnvIfDefault "DOTNET_CLI_VERSION" "0.1.0.0" setPathAndHomeIfDefault "$Stage2Dir" -setVarIfDefault "Configuration" "Debug" +setVarIfDefault "CONFIGURATION" "Debug" diff --git a/scripts/publish/publish.ps1 b/scripts/publish/publish.ps1 index 607dfedd0..e222d6c50 100644 --- a/scripts/publish/publish.ps1 +++ b/scripts/publish/publish.ps1 @@ -142,7 +142,7 @@ function UploadInstallers($installerFile) function UploadVersionBadge($badgeFile) { - $fileName = "windows_$($Configuration)_$([System.IO.Path]::GetFileName($badgeFile))" + $fileName = "windows_$($env:CONFIGURATION)_$([System.IO.Path]::GetFileName($badgeFile))" Write-Host "Uploading the version badge to Latest" UploadFile "$env:CHANNEL/Binaries/Latest/$fileName" $badgeFile