Merge pull request #1451 from dotnet/piotrpMSFT/CONFIGURATION

fix up casing of PS1 environment variables
This commit is contained in:
Piotr Puszkiewicz 2016-02-16 20:01:34 -08:00
commit d3812d9d8c
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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"

View file

@ -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