Comment 5 for bug 1999266

Revision history for this message
Miriam EspaƱa Acebal (mirespace) wrote :

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/

global.json file:
  Not found

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]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

#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:~#