软件包“ Microsoft.EntityFrameWorkCore.Inmemory”与结构不兼容。

发布于 2025-02-04 02:28:02 字数 556 浏览 1 评论 0原文

我正在尝试将EF核心添加到一个项目中。通过在终端中打字 dotnet添加软件包microsoft.entityframeworkcore.inmemory-version 6.0 但是这样做我会收到第一个错误:

nu1301:无法为源http://teamcity.monogame.net/guestauth/guestauth/app/nuget/nuget/feed/_root/_root/_root/_root/default/def3/index.json.json.json.json.for加载服务索引。代码>

我注意到我过去使用的单体框架的名称是错误的,我删除了它,但是在尝试再次添加EF Core之后,我得到了另一个错误:

package'Microsoft.entityframeworkcore.inmemory “与project中的结构不兼容” c:\ users \ user \ user \ pizzastore1 \ pizzastore1.csproj”。
我不知道这意味着该软件包与“全”结构都不兼容。请帮忙。

I am trying to add EF Core to a project. By typing in the terminal
dotnet add package Microsoft.EntityFrameworkCore.InMemory --version 6.0
but doing this I get first error:

NU1301: Could not load service index for source http://teamcity.monogame.net/guestAuth/app/nuget/feed/_Root/default/v3/index.json.

I noticed that the name of the MonoGame framework that I used to use is wrong, I removed it which helped, but after trying to add EF Core again, I got another error:

The package "Microsoft.EntityFrameworkCore.InMemory" is incompatible with the structures "all" in the project "C: \ Users \ user \ PizzaStore1 \ PizzaStore1.csproj".
I don't know what this means that the package is incompatible with the "all" structure. Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文