@@ -68,7 +68,7 @@ ensure_dotnet_installed() {
68
68
if [ -z " $( verify_existing_dotnet_installation) " ]; then
69
69
curl -LO https://dot.net/v1/dotnet-install.sh
70
70
chmod +x ./dotnet-install.sh
71
- bash -c " ./dotnet-install.sh"
71
+ bash -c " ./dotnet-install.sh --channel 7.0 "
72
72
73
73
# Since we have to run the dotnet install script with bash, dotnet isn't
74
74
# added to the process PATH, so we manually add it here.
@@ -83,7 +83,7 @@ verify_existing_dotnet_installation() {
83
83
sdks=$( dotnet --list-sdks | cut -c 1-3)
84
84
85
85
# If we have a supported version installed, return.
86
- supported_dotnet_versions=" 6 .0"
86
+ supported_dotnet_versions=" 7 .0"
87
87
for v in $supported_dotnet_versions ; do
88
88
if [ $( echo $sdks | grep " $v " ) ]; then
89
89
echo $sdks
@@ -134,7 +134,7 @@ case "$distribution" in
134
134
# Install dotnet packages and dependencies if needed.
135
135
if [ -z " $( verify_existing_dotnet_installation) " ]; then
136
136
# First try to use native feeds (Ubuntu 22.04 and later).
137
- if ! apt_install dotnet6 ; then
137
+ if ! apt_install dotnet7 ; then
138
138
# If the native feeds fail, we fall back to
139
139
# packages.microsoft.com. We begin by adding the dotnet package
140
140
# repository/signing key.
@@ -150,7 +150,7 @@ case "$distribution" in
150
150
$sudo_cmd apt update
151
151
$sudo_cmd apt install apt-transport-https -y
152
152
$sudo_cmd apt update
153
- $sudo_cmd apt install dotnet-sdk-6 .0 dpkg-dev -y
153
+ $sudo_cmd apt install dotnet-sdk-7 .0 dpkg-dev -y
154
154
fi
155
155
fi
156
156
;;
0 commit comments