Skip to content

Commit 578f542

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@0fafbcc
1 parent 482dd39 commit 578f542

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

dnvm.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="beta5-10364"
70+
$BuildVersion="beta5-10365"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...

dnvm.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Source this file from your .bash-profile or script to use
33

44
# "Constants"
5-
_DNVM_BUILDNUMBER="beta5-10364"
5+
_DNVM_BUILDNUMBER="beta5-10365"
66
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
77
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
88
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@@ -374,6 +374,12 @@ dnvm()
374374
local runtimeVersion=$(__dnvm_package_version "$runtimeFullName")
375375
local runtimeFolder="$_DNVM_USER_PACKAGES/$runtimeFullName"
376376
local runtimeFile="$runtimeFolder/$runtimeFullName.nupkg"
377+
local runtimeClr=$(__dnvm_package_runtime "$runtimeFullName")
378+
379+
if [ -n "$force" ]; then
380+
printf "%b\n" "${Yel}Forcing download by deleting $runtimeFolder directory ${RCol}"
381+
rm -rf "$runtimeFolder"
382+
fi
377383

378384
if [ -e "$runtimeFolder" ]; then
379385
echo "$runtimeFullName already installed"
@@ -383,7 +389,7 @@ dnvm()
383389
__dnvm_unpack "$runtimeFile" "$runtimeFolder"
384390
[[ $? == 1 ]] && return 1
385391
fi
386-
$_DNVM_COMMAND_NAME use "$runtimeVersion" "$persistent"
392+
$_DNVM_COMMAND_NAME use "$runtimeVersion" "$persistent" -r "$runtimeClr"
387393
[[ -n $alias ]] && $_DNVM_COMMAND_NAME alias "$alias" "$runtimeVersion"
388394
else
389395
local runtimeFullName="$(__dnvm_requested_version_or_alias $versionOrAlias)"

0 commit comments

Comments
 (0)