diff --git a/provision/provision-dotnet-sdk.sh b/provision/provision-dotnet-sdk.sh
index 9f395e0..3ef78ee 100644
--- a/provision/provision-dotnet-sdk.sh
+++ b/provision/provision-dotnet-sdk.sh
@@ -1,10 +1,14 @@
#!/bin/bash
set -euxo pipefail
-# pin the microsoft apt repository above the distro.
+# opt-out of telemetry.
+echo 'export DOTNET_CLI_TELEMETRY_OPTOUT=1' >/etc/profile.d/opt-out-dotnet-cli-telemetry.sh
+source /etc/profile.d/opt-out-dotnet-cli-telemetry.sh
+
+# pin the microsoft apt repository packages above the distro ones.
# see apt-cache policy
-# see apt-cache policy dotnet-sdk-6.0
-# see apt-cache showpkg dotnet-sdk-6.0
+# see apt-cache policy dotnet-sdk-8.0
+# see apt-cache showpkg dotnet-sdk-8.0
# see http://manpages.ubuntu.com/manpages/jammy/en/man5/apt_preferences.5.html
cat >/etc/apt/preferences.d/packages.microsoft.com.pref <<'EOF'
Package: *
@@ -12,18 +16,14 @@ Pin: origin "packages.microsoft.com"
Pin-Priority: 999
EOF
-# opt-out of telemetry.
-echo 'export DOTNET_CLI_TELEMETRY_OPTOUT=1' >/etc/profile.d/opt-out-dotnet-cli-telemetry.sh
-source /etc/profile.d/opt-out-dotnet-cli-telemetry.sh
-
# install the dotnet core sdk.
-# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
+# see https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
wget -qO packages-microsoft-prod.deb "https://packages.microsoft.com/config/ubuntu/$(lsb_release -s -r)/packages-microsoft-prod.deb"
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get install -y apt-transport-https
apt-get update
-apt-get install -y dotnet-sdk-6.0
+apt-get install -y dotnet-sdk-8.0
# show versions.
dotnet --info
diff --git a/provision/use-nuget-repository.sh b/provision/use-nuget-repository.sh
index fcd4f16..5e8ac70 100644
--- a/provision/use-nuget-repository.sh
+++ b/provision/use-nuget-repository.sh
@@ -68,7 +68,7 @@ dotnet nuget list source
cat >example-hello-world.csproj <<'EOF'
- net6.0
+ net8.0
1.0.0
Alice Doe
Copyleft Alice Doe
@@ -82,7 +82,7 @@ cat >example-hello-world.csproj <<'EOF'
-
+
EOF
@@ -127,7 +127,7 @@ cat >test.csproj <<'EOF'
Exe
- net6.0
+ net8.0
EOF
@@ -159,7 +159,7 @@ EOF
dotnet nuget list source
dotnet add package example-hello-world
# see https://www.nuget.org/packages/Serilog.Sinks.Console/
-dotnet add package Serilog.Sinks.Console --version 4.1.0
+dotnet add package Serilog.Sinks.Console --version 6.0.0
dotnet build -v=n -c=Release
dotnet publish -v=n -c=Release --no-build --output dist
./dist/test