Last post Jul 23, 2020 06:52 AM by yinqiu
Jul 22, 2020 10:52 PM|scrungus|LINK
When i try to run the command 'dotnet ef database update' i get the error :
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.
output of various commands:
dotnet ef --version "Entity Framework Core .NET Command-line Tools 3.1.6"
dotnet --list-sdks "3.1.302 [/usr/share/dotnet/sdk]"
dotnet --list-runtimes "Microsoft.NETCore.App 3.1.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]"
running Manjaro Linux
Jul 23, 2020 06:52 AM|yinqiu|LINK
The reason for this error is because your environment is 3.1.0, but the version of the library Microsoft.AspNetCore.App is not uniform and the environment is missing.
You can check your netcore environment in the directory: /usr/share/dotnet/shared/Microsoft.AspNetCore.App/.
The solution is:
by analyzing the prompt output from the terminal, visit ‘https://aka.ms/dotnet-download’ to the official website to download the corresponding version of the package, unzip it and find the corresponding folder,
and place it in this directory:‘/Usr/share/dotnet/shared/Microsoft.AspNetCore.App/’
Then run it again.
Hope this can help you.