Issues with running EF database update RRS feed

  • Question

  • User-1380815824 posted

    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

    Wednesday, July 22, 2020 10:52 PM


  • User-217098811 posted

    Hi scrungus

    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.



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 23, 2020 6:52 AM