Updating dnvm
This commit is contained in:
parent
6471ef34a7
commit
d65251055e
|
|
@ -67,7 +67,7 @@ function _WriteOut {
|
|||
|
||||
### Constants
|
||||
$ProductVersion="1.0.0"
|
||||
$BuildVersion="beta6-10390"
|
||||
$BuildVersion="beta6-10394"
|
||||
$Authors="Microsoft Open Technologies, Inc."
|
||||
|
||||
# If the Version hasn't been replaced...
|
||||
|
|
@ -1299,6 +1299,17 @@ function dnvm-run {
|
|||
param(
|
||||
[Parameter(Mandatory=$true, Position=0)]
|
||||
[string]$VersionOrAlias,
|
||||
|
||||
[Alias("arch")]
|
||||
[ValidateSet("", "x86", "x64", "arm")]
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]$Architecture = "",
|
||||
|
||||
[Alias("r")]
|
||||
[ValidateSet("", "clr", "coreclr")]
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]$Runtime = "",
|
||||
|
||||
[Parameter(Mandatory=$false, Position=1, ValueFromRemainingArguments=$true)]
|
||||
[object[]]$DnxArguments)
|
||||
|
||||
|
|
@ -1329,6 +1340,16 @@ function dnvm-exec {
|
|||
[string]$VersionOrAlias,
|
||||
[Parameter(Mandatory=$false, Position=1)]
|
||||
[string]$Command,
|
||||
|
||||
[Alias("arch")]
|
||||
[ValidateSet("", "x86", "x64", "arm")]
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]$Architecture = "",
|
||||
|
||||
[Alias("r")]
|
||||
[ValidateSet("", "clr", "coreclr")]
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]$Runtime = "",
|
||||
[Parameter(Mandatory=$false, Position=2, ValueFromRemainingArguments=$true)]
|
||||
[object[]]$Arguments)
|
||||
|
||||
|
|
@ -1455,11 +1476,7 @@ if(!$cmd) {
|
|||
try {
|
||||
if(Get-Command -Name "$CommandPrefix$cmd" -ErrorAction SilentlyContinue) {
|
||||
_WriteDebug "& dnvm-$cmd $cmdargs"
|
||||
if($host.Version.Major -lt 3) {
|
||||
Invoke-Command ([ScriptBlock]::Create("dnvm-$cmd $cmdargs"))
|
||||
} else {
|
||||
& "dnvm-$cmd" @cmdargs
|
||||
}
|
||||
Invoke-Command ([ScriptBlock]::Create("dnvm-$cmd $cmdargs"))
|
||||
}
|
||||
else {
|
||||
_WriteOut "Unknown command: '$cmd'"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# Source this file from your .bash-profile or script to use
|
||||
|
||||
# "Constants"
|
||||
_DNVM_BUILDNUMBER="beta6-10390"
|
||||
_DNVM_BUILDNUMBER="beta6-10394"
|
||||
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
||||
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
||||
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
||||
|
|
@ -413,7 +413,7 @@ dnvm()
|
|||
fi
|
||||
|
||||
if [[ $arch == "x86" && $runtime == "coreclr" ]]; then
|
||||
printf "%b\n" "${Red}Core CLR doesn't currently have a 32 bit build. You must use x64."
|
||||
printf "%b\n" "${Red}Core CLR doesn't currently have a 32 bit build. You must use x64.${RCol}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue