Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Upgrade dnvm to beta8 #278

Closed
wants to merge 1 commit into from
Closed

Upgrade dnvm to beta8 #278

wants to merge 1 commit into from

Conversation

natemcmaster
Copy link
Contributor

Current version of dnvm is fairly old.

@dnfclas
Copy link

dnfclas commented Sep 16, 2015

Hi @natemcmaster, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

$env:DNX_HOME="$env:DNX_HOME;$env:DNX_GLOBAL_HOME"
$UnencodedHomes = "$UnencodedHomes;$GlobalHome"
}

$UnencodedHomes = $UnencodedHomes.Split(";")
$RuntimeHomes = $UnencodedHomes | ForEach-Object { [Environment]::ExpandEnvironmentVariables($_) }
$RuntimeDirs = $RuntimeHomes | ForEach-Object { Join-Path $_ "runtimes" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until we fix dotnet/aspnetcore#899 and / or aspnet/dnvm#422, we should not take this version of dnvm.ps1. The problem is that all variables in $UnencodedHomes are already expanded when [Environment]::ExpandEnvironmentVariables() is called above i.e. they're referenced before they are definitely defined -- $env:DNX_HOME and $env:DNX_GLOBAL_HOME in particular. That leads to failures because $_ is empty here.

@dougbu
Copy link
Member

dougbu commented Sep 16, 2015

@dougbu dougbu mentioned this pull request Sep 22, 2015
@natemcmaster
Copy link
Contributor Author

See #288

@natemcmaster natemcmaster deleted the namc/up-dnvm branch February 23, 2016 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants