You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw"The server returned a 404 (NotFound). This is most likely caused by the feed not having the version that you typed. Check that you typed the right version and try again. Other possible causes are the feed doesn't have a $RuntimeShortFriendlyName of the right name format or some other error caused a 404 on the server."
558
+
} else {
559
+
throw"Unable to download package: {0}"-f$Global:downloadData.Error.Message
560
+
}
536
561
}
537
562
538
563
Write-Progress-Activity ("Downloading $RuntimeShortFriendlyName from $url") -Id 2-ParentId 1-Completed
For CLR flavor only. Generate native images for runtime libraries on Desktop CLR to improve startup time. This option requires elevated privilege and will be automatically turned on if the script is running in administrative mode. To opt-out in administrative mode, use -NoNative switch.
957
+
.PARAMETERUnstable
958
+
Upgrade from our unstable dev feed. This will give you the latest development version of the runtime.
For CLR flavor only. Generate native images for runtime libraries on Desktop CLR to improve startup time. This option requires elevated privilege and will be automatically turned on if the script is running in administrative mode. To opt-out in administrative mode, use -NoNative switch.
985
1016
.PARAMETERPersistent
986
1017
Make the installed runtime useable across all processes run by the current user
1018
+
.PARAMETERUnstable
1019
+
Upgrade from our unstable dev feed. This will give you the latest development version of the runtime.
987
1020
.DESCRIPTION
988
1021
A proxy can also be specified by using the 'http_proxy' environment variable
989
-
990
1022
#>
991
1023
functiondnvm-install {
992
1024
param(
@@ -1021,7 +1053,28 @@ function dnvm-install {
1021
1053
[switch]$Ngen,
1022
1054
1023
1055
[Parameter(Mandatory=$false)]
1024
-
[switch]$Persistent)
1056
+
[switch]$Persistent,
1057
+
1058
+
[Parameter(Mandatory=$false)]
1059
+
[switch]$Unstable)
1060
+
1061
+
$selectedFeed=""
1062
+
1063
+
if($Unstable) {
1064
+
$selectedFeed=$ActiveUnstableFeed
1065
+
if(!$selectedFeed) {
1066
+
$selectedFeed=$DefaultUnstableFeed
1067
+
} else {
1068
+
_WriteOut -ForegroundColor $ColorScheme.Warning"Default unstable feed ($DefaultUnstableFeed) is being overridden by the value of the DNX_UNSTABLE_FEED environment variable ($ActiveUnstableFeed)"
1069
+
}
1070
+
} else {
1071
+
$selectedFeed=$ActiveFeed
1072
+
if(!$selectedFeed) {
1073
+
$selectedFeed=$DefaultFeed
1074
+
} else {
1075
+
_WriteOut -ForegroundColor $ColorScheme.Warning"Default stable feed ($DefaultFeed) is being overridden by the value of the DNX_FEED environment variable ($ActiveFeed)"
1076
+
}
1077
+
}
1025
1078
1026
1079
if(!$VersionNuPkgOrAlias) {
1027
1080
_WriteOut "A version, nupkg path, or the string 'latest' must be provided."
0 commit comments