[Bug 2046535] Re: Improve installation instruction on missing runtime

Dominik Viererbe 2046535 at bugs.launchpad.net
Tue Apr 2 15:03:51 UTC 2024


** Changed in: dotnet6 (Ubuntu)
       Status: New => Confirmed

** Changed in: dotnet7 (Ubuntu)
       Status: New => Confirmed

** Changed in: dotnet8 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dotnet6 in Ubuntu.
https://bugs.launchpad.net/bugs/2046535

Title:
  Improve installation instruction on missing runtime

Status in dotnet6 package in Ubuntu:
  Confirmed
Status in dotnet7 package in Ubuntu:
  Confirmed
Status in dotnet8 package in Ubuntu:
  Confirmed

Bug description:
  When trying to run a .NET 6 compiled .dll file with only a .NET 8
  runtime installed the .NET host recommends to follow the generic
  install instructions. This should be the case for any missing runtime
  version, although I haven't tested it for other combinations.

  This behavior could be improved by checking if the package manager can
  find an installable runtime (e.g. with `apt-cache search dotnetX`) and
  suggest that (`sudo apt install dotnetX`) to the user instead.

  Example output
  ==============

  You must install or update .NET to run this application.

  App: /home/dviererbe/Repositories/net6/bin/Release/net6.0/publish/net6.dll
  Architecture: x64
  Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
  .NET location: /usr/lib/dotnet/

  The following frameworks were found:
    8.0.0 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

  Learn more:
  https://aka.ms/dotnet/app-launch-failed

  To install missing framework, download:
  https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=ubuntu.23.10-x64&os=ubuntu.23.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dotnet6/+bug/2046535/+subscriptions




More information about the foundations-bugs mailing list