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