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
say_err "'$user_defined_os' is not a supported value for --os option, supported values are: osx, linux, linux-musl, freebsd, rhel.6. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues."
361
+
return 1
362
+
;;
363
+
esac
364
+
else
365
+
osname="$(get_current_os_name)"||return 1
366
+
fi
367
+
echo"$osname"
368
+
return 0
369
+
}
370
+
347
371
# The version text returned from the feeds is a 1-line or 2-line string:
say_warning "The --shared-runtime flag is obsolete and may be removed in a future version of this script. The recommended usage is to specify '--runtime dotnet'."
992
1023
if [ -z"$runtime" ];then
@@ -1038,6 +1069,7 @@ do
1038
1069
shift
1039
1070
runtime_id="$1"
1040
1071
non_dynamic_parameters+="$name"\""$1"\"""
1072
+
say_warning "Use of --runtime-id is obsolete and should be limited to the versions below 2.1. To override architecture, use --architecture option instead. To override OS, use --os option instead."
1041
1073
;;
1042
1074
--jsonfile|-[Jj][Ss]on[Ff]ile)
1043
1075
shift
@@ -1077,6 +1109,11 @@ do
1077
1109
echo" --architecture <ARCHITECTURE> Architecture of dotnet binaries to be installed, Defaults to \`$architecture\`."
1078
1110
echo" --arch,-Architecture,-Arch"
1079
1111
echo" Possible values: x64, arm, and arm64"
1112
+
echo" --os <system> Specifies operating system to be used when selecting the installer."
1113
+
echo" Overrides the OS determination approach used by the script. Supported values: osx, linux, linux-musl, freebsd, rhel.6."
1114
+
echo" In case any other value is provided, the platform will be determined by the script based on machine configuration."
1115
+
echo" Not supported for legacy links. Use --runtime-id to specify platform for legacy links."
1116
+
echo" Refer to: https://aka.ms/dotnet-os-lifecycle for more information."
1080
1117
echo" --runtime <RUNTIME> Installs a shared runtime only, without the SDK."
1081
1118
echo" -Runtime"
1082
1119
echo" Possible values:"
@@ -1093,14 +1130,15 @@ do
1093
1130
echo" --no-cdn,-NoCdn Disable downloading from the Azure CDN, and use the uncached feed directly."
1094
1131
echo" --jsonfile <JSONFILE> Determines the SDK version from a user specified global.json file."
1095
1132
echo" Note: global.json must have a value for 'SDK:Version'"
1096
-
echo" --runtime-id Installs the .NET Tools for the given platform (use linux-x64 for portable linux)."
1097
-
echo" -RuntimeId"
1098
1133
echo" -?,--?,-h,--help,-Help Shows this help message"
1099
1134
echo""
1100
1135
echo"Obsolete parameters:"
1101
1136
echo" --shared-runtime The recommended alternative is '--runtime dotnet'."
1102
1137
echo" This parameter is obsolete and may be removed in a future version of this script."
1103
1138
echo" Installs just the shared runtime bits, not the entire SDK."
1139
+
echo" --runtime-id Installs the .NET Tools for the given platform (use linux-x64 for portable linux)."
1140
+
echo" -RuntimeId" The parameter is obsolete and may be removed in a future version of this script. Should be used only for versions below 2.1.
1141
+
echo" For primary links to override OS or/and architecture, use --os and --architecture option instead."
1104
1142
echo""
1105
1143
echo"Install Location:"
1106
1144
echo" Location is chosen in following order:"
@@ -1137,7 +1175,7 @@ if [ "$dry_run" = true ]; then
1137
1175
if [ "$valid_legacy_download_link"=true ];then
1138
1176
say "Legacy named payload URL: $legacy_download_link"
0 commit comments