Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/linux/Packaging.Linux/install-from-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ensure_dotnet_installed() {
if [ -z "$(verify_existing_dotnet_installation)" ]; then
curl -LO https://dot.net/v1/dotnet-install.sh
chmod +x ./dotnet-install.sh
bash -c "./dotnet-install.sh"
bash -c "./dotnet-install.sh --channel 7.0"

# Since we have to run the dotnet install script with bash, dotnet isn't
# added to the process PATH, so we manually add it here.
Expand All @@ -83,7 +83,7 @@ verify_existing_dotnet_installation() {
sdks=$(dotnet --list-sdks | cut -c 1-3)

# If we have a supported version installed, return.
supported_dotnet_versions="6.0"
supported_dotnet_versions="7.0"
for v in $supported_dotnet_versions; do
if [ $(echo $sdks | grep "$v") ]; then
echo $sdks
Expand Down Expand Up @@ -134,7 +134,7 @@ case "$distribution" in
# Install dotnet packages and dependencies if needed.
if [ -z "$(verify_existing_dotnet_installation)" ]; then
# First try to use native feeds (Ubuntu 22.04 and later).
if ! apt_install dotnet6; then
if ! apt_install dotnet7; then
# If the native feeds fail, we fall back to
# packages.microsoft.com. We begin by adding the dotnet package
# repository/signing key.
Expand All @@ -150,7 +150,7 @@ case "$distribution" in
$sudo_cmd apt update
$sudo_cmd apt install apt-transport-https -y
$sudo_cmd apt update
$sudo_cmd apt install dotnet-sdk-6.0 dpkg-dev -y
$sudo_cmd apt install dotnet-sdk-7.0 dpkg-dev -y
fi
fi
;;
Expand Down