File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function _WriteOut {
67
67
68
68
# ## Constants
69
69
$ProductVersion = " 1.0.0"
70
- $BuildVersion = " beta8-15514 "
70
+ $BuildVersion = " beta8-15515 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
@@ -1598,7 +1598,7 @@ function dnvm-run {
1598
1598
[Parameter (Mandatory = $false , Position = 1 , ValueFromRemainingArguments = $true )]
1599
1599
[object []]$DnxArguments )
1600
1600
1601
- $runtimeInfo = Get-RuntimeAliasOrRuntimeInfo - Version:$VersionOrAlias
1601
+ $runtimeInfo = Get-RuntimeAliasOrRuntimeInfo - Version:$VersionOrAlias - Runtime: $Runtime - Architecture: $Architecture
1602
1602
1603
1603
$runtimeBin = Get-RuntimePath $runtimeInfo.RuntimeName
1604
1604
if ($runtimeBin -eq $null ) {
@@ -1639,7 +1639,7 @@ function dnvm-exec {
1639
1639
[Parameter (Mandatory = $false , Position = 2 , ValueFromRemainingArguments = $true )]
1640
1640
[object []]$Arguments )
1641
1641
1642
- $runtimeInfo = Get-RuntimeAliasOrRuntimeInfo - Version:$VersionOrAlias
1642
+ $runtimeInfo = Get-RuntimeAliasOrRuntimeInfo - Version:$VersionOrAlias - Runtime: $Runtime - Architecture: $Architecture
1643
1643
$runtimeBin = Get-RuntimePath $runtimeInfo.RuntimeName
1644
1644
1645
1645
if ($runtimeBin -eq $null ) {
Original file line number Diff line number Diff line change 2
2
# Source this file from your .bash-profile or script to use
3
3
4
4
# "Constants"
5
- _DNVM_BUILDNUMBER=" beta8-15514 "
5
+ _DNVM_BUILDNUMBER=" beta8-15515 "
6
6
_DNVM_AUTHORS=" Microsoft Open Technologies, Inc."
7
7
_DNVM_RUNTIME_PACKAGE_NAME=" dnx"
8
8
_DNVM_RUNTIME_FRIENDLY_NAME=" .NET Execution Environment"
@@ -684,9 +684,9 @@ dnvm()
684
684
local arch=
685
685
local runtime=
686
686
687
+ local versionOrAlias=
687
688
shift
688
689
if [ $cmd == " use" ]; then
689
- local versionOrAlias=
690
690
while [ $# -ne 0 ]
691
691
do
692
692
if [[ $1 == " -p" || $1 == " -persistent" ]]; then
@@ -706,8 +706,20 @@ dnvm()
706
706
shift
707
707
done
708
708
else
709
- local versionOrAlias=$1
710
- shift
709
+ while [ $# -ne 0 ]
710
+ do
711
+ if [[ $1 == " -a" || $1 == " -arch" ]]; then
712
+ local arch=$2
713
+ shift
714
+ elif [[ $1 == " -r" || $1 == " -runtime" ]]; then
715
+ local runtime=$2
716
+ shift
717
+ elif [[ -n $1 ]]; then
718
+ [[ -n $versionOrAlias ]] && break
719
+ local versionOrAlias=$1
720
+ fi
721
+ shift
722
+ done
711
723
fi
712
724
713
725
if [[ $cmd == " use" && $versionOrAlias == " none" ]]; then
You can’t perform that action at this time.
0 commit comments