ASP.NET Core: "The framework ‘Microsoft.AspNetCore.App’, version ‘3.1.0’ was not found" when running a Framework-Dependant app

  Uncategorised

I just installed the ASP.NET Core from Microsoft website but when i’m trying to run my app (./Web) i get the following error message:

[email protected]:/usr/local/Monitoring/Web# ./Web
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - No frameworks were found.


You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=arm&rid=openstlinux-weston.3.1-openstlinux-5-4-dunfell-mp1-20-11-12-arm

But when i run dotnet --list-runtimes it tells me that the runtimes are correctly setup:

[email protected]:/usr/local/Monitoring/Web# dotnet --list-runtimes 
Microsoft.AspNetCore.App 3.1.0 [/usr/local/dotnet/shared/Microsoft.AspNetCore.App] 
Microsoft.NETCore.App 3.1.0 [/usr/local/dotnet/shared/Microsoft.NETCore.App]

Here is the result of the dotnet --info commad:


[email protected]:/usr/local/Monitoring/Web# dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     openstlinux-weston
 OS Version:  3.1-openstlinux-5-4-dunfell-mp1-20-11-12
 OS Platform: Linux
 RID:         linux-arm
 Base Path:   /usr/local/dotnet/sdk/3.1.100/

Host (useful for support):
  Version: 3.1.0
  Commit:  65f04fb6db

.NET Core SDKs installed:
  3.1.100 [/usr/local/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.0 [/usr/local/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.0 [/usr/local/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Also my path is set correctly:

[email protected]:/usr/local/Monitoring/Web# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/dotnet

I tryed with following ARM32 Binaries:

  • SDK 3.1.406
  • ASP.NET Core Runtime 3.1.12
  • SDK 3.1.100
  • ASP.NET Core Runtime 3.1.0
  • Both SDK/Runtimes combined

But nothing worked!

For information i run this commands on and ARM32 A7 processor from STM and openstlinux-weston (which is generated from Yoctoproject)
Previously, executing this project as Framework-dependant worked, but now i can only run it as Self-Contained, but i have many project and not so much space….

Hope there is enough information to solve this problem…

Source: Visual Studio Questions

LEAVE A COMMENT