带有实体核心全局的Net Core 3-带Debian的dotnet-ef

时间:2019-06-28 01:18:22

标签: linux entity-framework .net-core

我在运行实体框架时遇到问题。

我在Microsoft的网站上下载了Net Core 3.0 Preview6.tar。 我解压缩,然后移至

/ opt / net_core / skd_3 并创建了一个指向/ bin的符号链接

现在当我在任何可行的地方运行dotnet时。

然后我执行了

dotnet tool install -g dotnet-ef --version 3.0.0-preview6.19304.10

但是当我尝试做dotnet-ef时 总是返回错误:

A fatal error occurred. The required library libhostfxr.so could not be found.
If this is a self-contained application, that library should exist in [/home/rodrigo/.dotnet/tools/.store/dotnet-ef/3.0.0-preview6.19304.10/dotnet-ef/3.0.0-preview6. 19304.10 / tools / netcoreapp3.0 / any /].
If this is a framework-dependent application, install the runtime in the global location [/ usr / share / dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/ etc / dotnet / install_location].

有人可以帮忙吗?

0 个答案:

没有答案