Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Commit 703068b

Browse files
author
Praburaj
committed
Regression causing file not found error when installing coreclr dnx
This is a regression introduced by 828b008. On install of coreclr xre previously the dnvm use happened before invoking cross gen. With this change I moved this to a common place so that dnvm-use is called irrespective if the dnx already exists or not.
1 parent 828b008 commit 703068b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/dnvm.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ function dnvm-install {
10041004

10051005
if(Test-Path $RuntimeFolder) {
10061006
_WriteOut "'$runtimeFullName' is already installed."
1007+
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
10071008
}
10081009
else {
10091010
$Architecture = GetArch $Architecture
@@ -1038,6 +1039,8 @@ function dnvm-install {
10381039
_WriteDebug "Cleaning temporary directory $UnpackFolder"
10391040
Remove-Item $UnpackFolder -Force | Out-Null
10401041

1042+
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
1043+
10411044
if ($Runtime -eq "clr") {
10421045
if (-not $NoNative) {
10431046
if ((Is-Elevated) -or $Ngen) {
@@ -1071,8 +1074,6 @@ function dnvm-install {
10711074
}
10721075
}
10731076

1074-
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
1075-
10761077
if($Alias) {
10771078
_WriteDebug "Aliasing installed runtime to '$Alias'"
10781079
dnvm-alias $Alias $PackageVersion -Architecture:$Architecture -Runtime:$Runtime

0 commit comments

Comments
 (0)