Verification on Jammy: OK
#Bad Case
#0.dotnet is properly installed
root@Jdotnet1983380:~# dotnet --info .NET SDK (reflecting any global.json): Version: 6.0.111 Commit: b3bb659a9d
Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: ubuntu.22.04-x64 Base Path: /usr/lib/dotnet/sdk/6.0.111/
global.json file: Not found
Host: Version: 6.0.11 Architecture: x64 Commit: 943474ca16
.NET SDKs installed: 6.0.111 [/usr/lib/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Download .NET: https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info
#1. The executable could not be directly called
root@Jdotnet1983380:~# TheTesting/bin/Debug/net6.0/TheTesting You must install .NET to run this application.
App: /root/TheTesting/bin/Debug/net6.0/TheTesting Architecture: x64 App host version: 6.0.11 .NET location: Not found
Learn about runtime installation: https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime: https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=6.0.11 root@Jdotnet1983380:~#
#Good case
#0. Updating to .112: Checking installation:
root@Jdotnet1983380:~# dotnet --info .NET SDK (reflecting any global.json): Version: 6.0.112 Commit: d311a58ee1
Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: ubuntu.22.04-x64 Base Path: /usr/lib/dotnet/sdk/6.0.112/
Host: Version: 6.0.12 Architecture: x64 Commit: 02e45a41b7
.NET SDKs installed: 6.0.112 [/usr/lib/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.12 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.12 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
#1. Checking location files are present at /etc/dotnet:
root@Jdotnet1983380:~# l /etc/dotnet/ install_location install_location_x64 root@Jdotnet1983380:~#
#2.Checking we can run the dotnet binary directly:
root@Jdotnet1983380:~# TheTesting/bin/Debug/net6.0/TheTesting Hello, World! root@Jdotnet1983380:~#
Verification on Jammy: OK
#Bad Case
#0.dotnet is properly installed
root@Jdotnet198 3380:~# dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.111
Commit: b3bb659a9d
Runtime Environment: dotnet/ sdk/6.0. 111/
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/
global.json file:
Not found
Host:
Version: 6.0.11
Architecture: x64
Commit: 943474ca16
.NET SDKs installed: dotnet/ sdk]
6.0.111 [/usr/lib/
.NET runtimes installed: AspNetCore. App 6.0.11 [/usr/lib/ dotnet/ shared/ Microsoft. AspNetCore. App] NETCore. App 6.0.11 [/usr/lib/ dotnet/ shared/ Microsoft. NETCore. App]
Microsoft.
Microsoft.
Download .NET: /aka.ms/ dotnet- download
https:/
Learn about .NET Runtimes and SDKs: /aka.ms/ dotnet/ runtimes- sdk-info
https:/
#1. The executable could not be directly called
root@Jdotnet198 3380:~# TheTesting/ bin/Debug/ net6.0/ TheTesting
You must install .NET to run this application.
App: /root/TheTestin g/bin/Debug/ net6.0/ TheTesting
Architecture: x64
App host version: 6.0.11
.NET location: Not found
Learn about runtime installation: /aka.ms/ dotnet/ app-launch- failed
https:/
Download the .NET runtime: /aka.ms/ dotnet- core-applaunch? missing_ runtime= true&arch= x64&rid= ubuntu. 22.04-x64& apphost_ version= 6.0.11 3380:~#
https:/
root@Jdotnet198
#Good case
#0. Updating to .112: Checking installation:
root@Jdotnet198 3380:~# dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.112
Commit: d311a58ee1
Runtime Environment: dotnet/ sdk/6.0. 112/
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/
global.json file:
Not found
Host:
Version: 6.0.12
Architecture: x64
Commit: 02e45a41b7
.NET SDKs installed: dotnet/ sdk]
6.0.112 [/usr/lib/
.NET runtimes installed: AspNetCore. App 6.0.12 [/usr/lib/ dotnet/ shared/ Microsoft. AspNetCore. App] NETCore. App 6.0.12 [/usr/lib/ dotnet/ shared/ Microsoft. NETCore. App]
Microsoft.
Microsoft.
Download .NET: /aka.ms/ dotnet- download
https:/
Learn about .NET Runtimes and SDKs: /aka.ms/ dotnet/ runtimes- sdk-info
https:/
#1. Checking location files are present at /etc/dotnet:
root@Jdotnet198 3380:~# l /etc/dotnet/ location_ x64 3380:~#
install_location install_
root@Jdotnet198
#2.Checking we can run the dotnet binary directly:
root@Jdotnet198 3380:~# TheTesting/ bin/Debug/ net6.0/ TheTesting 3380:~#
Hello, World!
root@Jdotnet198