dotnet ef not found in .NET Core 3

后端 未结 8 1822
囚心锁ツ
囚心锁ツ 2020-12-02 04:35

I\'m following the docs in order to create an initial migration. When I execute dotnet, I get the help section, meaning that the PATH works properly.

Th

8条回答
  •  失恋的感觉
    2020-12-02 05:08

    if your using snap package dotnet-sdk on linux this can resolve by updating your ~.bashrc / etc. as follows:

    #!/bin/bash
    export DOTNET_ROOT=/snap/dotnet-sdk/current
    export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
    export PATH="${PATH}:${DOTNET_ROOT}"
    export PATH="$PATH:$HOME/.dotnet/tools"
    

提交回复
热议问题