Skip to content

Commit 83d0fb1

Browse files
committed
install from source: upgrade to .NET 7.0
Ensure all methods for installing .NET in the Linux install from source script use the .NET 7.0 SDK.
1 parent bad262e commit 83d0fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linux/Packaging.Linux/install-from-source.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ensure_dotnet_installed() {
6868
if [ -z "$(verify_existing_dotnet_installation)" ]; then
6969
curl -LO https://dot.net/v1/dotnet-install.sh
7070
chmod +x ./dotnet-install.sh
71-
bash -c "./dotnet-install.sh"
71+
bash -c "./dotnet-install.sh --channel 7.0"
7272

7373
# Since we have to run the dotnet install script with bash, dotnet isn't
7474
# added to the process PATH, so we manually add it here.
@@ -134,7 +134,7 @@ case "$distribution" in
134134
# Install dotnet packages and dependencies if needed.
135135
if [ -z "$(verify_existing_dotnet_installation)" ]; then
136136
# First try to use native feeds (Ubuntu 22.04 and later).
137-
if ! apt_install dotnet6; then
137+
if ! apt_install dotnet7; then
138138
# If the native feeds fail, we fall back to
139139
# packages.microsoft.com. We begin by adding the dotnet package
140140
# repository/signing key.

0 commit comments

Comments
 (0)