@@ -67,7 +67,7 @@ function _WriteOut {
67
67
68
68
# ## Constants
69
69
$ProductVersion = " 1.0.0"
70
- $BuildVersion = " rc1-15522 "
70
+ $BuildVersion = " rc1-15523 "
71
71
$Authors = " Microsoft Open Technologies, Inc."
72
72
73
73
# If the Version hasn't been replaced...
@@ -438,13 +438,13 @@ function Get-RuntimeAliasOrRuntimeInfo(
438
438
filter List-Parts {
439
439
param ($aliases , $items )
440
440
441
- $location = " "
441
+ $location = " "
442
442
443
- $binDir = Join-Path $_.FullName " bin"
444
- if ((Test-Path $binDir )) {
443
+ $binDir = Join-Path $_.FullName " bin"
444
+ if ((Test-Path $binDir )) {
445
445
$location = $_.Parent.FullName
446
446
}
447
- $active = IsOnPath $binDir
447
+ $active = IsOnPath $binDir
448
448
449
449
$fullAlias = " "
450
450
$delim = " "
@@ -1012,10 +1012,10 @@ filter ColorActive {
1012
1012
1013
1013
<#
1014
1014
. SYNOPSIS
1015
- Displays the DNVM version.
1015
+ Displays the DNVM version.
1016
1016
#>
1017
1017
function dnvm-version {
1018
- _WriteOut " $FullVersion "
1018
+ _WriteOut " $FullVersion "
1019
1019
}
1020
1020
1021
1021
<#
@@ -1044,9 +1044,9 @@ function dnvm-list {
1044
1044
}
1045
1045
}
1046
1046
1047
- $aliases | Where-Object {$_.Orphan } | ForEach-Object {
1048
- $items += $_ | Select-Object @ {label = ' Name' ;expression = {$_.Name }}, @ {label = ' FullName' ;expression = {Join-Path $RuntimesDir $_.Name }} | List- Parts $aliases
1049
- }
1047
+ $aliases | Where-Object {$_.Orphan } | ForEach-Object {
1048
+ $items += $_ | Select-Object @ {label = ' Name' ;expression = {$_.Name }}, @ {label = ' FullName' ;expression = {Join-Path $RuntimesDir $_.Name }} | List- Parts $aliases
1049
+ }
1050
1050
1051
1051
if ($PassThru ) {
1052
1052
$items
@@ -1106,12 +1106,12 @@ function dnvm-alias {
1106
1106
[Parameter (Position = 1 )]
1107
1107
[string ]$Version ,
1108
1108
1109
- [Alias (" arch" )]
1109
+ [Alias (" arch" , " a " )]
1110
1110
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1111
1111
[string ]$Architecture = " " ,
1112
1112
1113
1113
[Alias (" r" )]
1114
- [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1114
+ [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1115
1115
[Parameter (ParameterSetName = " Write" )]
1116
1116
[string ]$Runtime = " " ,
1117
1117
@@ -1174,17 +1174,16 @@ function dnvm-unalias {
1174
1174
#>
1175
1175
function dnvm-upgrade {
1176
1176
param (
1177
- [Alias (" a" )]
1178
1177
[Parameter (Mandatory = $false , Position = 0 )]
1179
1178
[string ]$Alias = " default" ,
1180
1179
1181
- [Alias (" arch" )]
1180
+ [Alias (" arch" , " a " )]
1182
1181
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1183
1182
[Parameter (Mandatory = $false )]
1184
1183
[string ]$Architecture = " " ,
1185
1184
1186
1185
[Alias (" r" )]
1187
- [ValidateSet (" " , " clr" , " coreclr" )]
1186
+ [ValidateSet (" " , " clr" , " coreclr" , " mono " )]
1188
1187
[Parameter (Mandatory = $false )]
1189
1188
[string ]$Runtime = " " ,
1190
1189
@@ -1205,9 +1204,11 @@ function dnvm-upgrade {
1205
1204
[Parameter (Mandatory = $false )]
1206
1205
[switch ]$Ngen ,
1207
1206
1207
+ [Alias (" u" )]
1208
1208
[Parameter (Mandatory = $false )]
1209
1209
[switch ]$Unstable ,
1210
1210
1211
+ [Alias (" g" )]
1211
1212
[Parameter (Mandatory = $false )]
1212
1213
[switch ]$Global )
1213
1214
@@ -1259,21 +1260,20 @@ function dnvm-install {
1259
1260
[Parameter (Mandatory = $false , Position = 0 )]
1260
1261
[string ]$VersionNuPkgOrAlias ,
1261
1262
1262
- [Alias (" arch" )]
1263
+ [Alias (" arch" , " a " )]
1263
1264
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1264
1265
[Parameter (Mandatory = $false )]
1265
1266
[string ]$Architecture = " " ,
1266
1267
1267
1268
[Alias (" r" )]
1268
- [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1269
+ [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1269
1270
[Parameter (Mandatory = $false )]
1270
1271
[string ]$Runtime = " " ,
1271
1272
1272
1273
[ValidateSet (" " , " win" , " osx" , " darwin" , " linux" )]
1273
1274
[Parameter (Mandatory = $false )]
1274
1275
[string ]$OS = " " ,
1275
1276
1276
- [Alias (" a" )]
1277
1277
[Parameter (Mandatory = $false )]
1278
1278
[string ]$Alias ,
1279
1279
@@ -1290,12 +1290,15 @@ function dnvm-install {
1290
1290
[Parameter (Mandatory = $false )]
1291
1291
[switch ]$Ngen ,
1292
1292
1293
+ [Alias (" p" )]
1293
1294
[Parameter (Mandatory = $false )]
1294
1295
[switch ]$Persistent ,
1295
1296
1297
+ [Alias (" u" )]
1296
1298
[Parameter (Mandatory = $false )]
1297
1299
[switch ]$Unstable ,
1298
1300
1301
+ [Alias (" g" )]
1299
1302
[Parameter (Mandatory = $false )]
1300
1303
[switch ]$Global )
1301
1304
@@ -1543,13 +1546,13 @@ function dnvm-uninstall {
1543
1546
[Parameter (Mandatory = $true , Position = 0 )]
1544
1547
[string ]$VersionOrAlias ,
1545
1548
1546
- [Alias (" arch" )]
1549
+ [Alias (" arch" , " a " )]
1547
1550
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1548
1551
[Parameter (Mandatory = $false )]
1549
1552
[string ]$Architecture = " " ,
1550
1553
1551
1554
[Alias (" r" )]
1552
- [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1555
+ [ValidateSet (" " , " clr" , " coreclr" , " mono" )]
1553
1556
[Parameter (Mandatory = $false )]
1554
1557
[string ]$Runtime = " " ,
1555
1558
@@ -1609,7 +1612,7 @@ function dnvm-use {
1609
1612
[Parameter (Mandatory = $true , Position = 0 )]
1610
1613
[string ]$VersionOrAlias ,
1611
1614
1612
- [Alias (" arch" )]
1615
+ [Alias (" arch" , " a " )]
1613
1616
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1614
1617
[Parameter (Mandatory = $false )]
1615
1618
[string ]$Architecture = " " ,
@@ -1663,6 +1666,10 @@ function dnvm-use {
1663
1666
Locates the dnx.exe for the specified version or alias and executes it, providing the remaining arguments to dnx.exe
1664
1667
. PARAMETER VersionOrAlias
1665
1668
The version of alias of the runtime to execute
1669
+ . PARAMETER Architecture
1670
+ The processor architecture of the runtime to use (default: x86, or whatever the alias specifies in the case of running an alias)
1671
+ . PARAMETER Runtime
1672
+ The runtime flavor of the runtime to use (default: clr, or whatever the alias specifies in the case of running an alias)
1666
1673
. PARAMETER DnxArguments
1667
1674
The arguments to pass to dnx.exe
1668
1675
#>
@@ -1671,7 +1678,7 @@ function dnvm-run {
1671
1678
[Parameter (Mandatory = $true , Position = 0 )]
1672
1679
[string ]$VersionOrAlias ,
1673
1680
1674
- [Alias (" arch" )]
1681
+ [Alias (" arch" , " a " )]
1675
1682
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1676
1683
[Parameter (Mandatory = $false )]
1677
1684
[string ]$Architecture = " " ,
@@ -1704,6 +1711,10 @@ function dnvm-run {
1704
1711
Executes the specified command in a sub-shell where the PATH has been augmented to include the specified DNX
1705
1712
. PARAMETER VersionOrAlias
1706
1713
The version of alias of the runtime to make active in the sub-shell
1714
+ . PARAMETER Architecture
1715
+ The processor architecture of the runtime to use (default: x86, or whatever the alias specifies in the case of exec-ing an alias)
1716
+ . PARAMETER Runtime
1717
+ The runtime flavor of the runtime to use (default: clr, or whatever the alias specifies in the case of exec-ing an alias)
1707
1718
. PARAMETER Command
1708
1719
The command to execute in the sub-shell
1709
1720
#>
@@ -1714,7 +1725,7 @@ function dnvm-exec {
1714
1725
[Parameter (Mandatory = $false , Position = 1 )]
1715
1726
[string ]$Command ,
1716
1727
1717
- [Alias (" arch" )]
1728
+ [Alias (" arch" , " a " )]
1718
1729
[ValidateSet (" " , " x86" , " x64" , " arm" )]
1719
1730
[Parameter (Mandatory = $false )]
1720
1731
[string ]$Architecture = " " ,
0 commit comments