gpt4 book ai didi

c# - 将 Microsoft.AspNet.Identity.EntityFramework.3.0.0-rc1-final 安装到类库中

转载 作者:太空宇宙 更新时间:2023-11-03 12:47:11 25 4
gpt4 key购买 nike

我正在尝试为新的 Microsoft Identity 模型创建一个类库,但被一个奇怪的错误打败了。

如果我创建一个常规的 C# 类库(不是 PCL)并尝试通过 Nuget 安装 Microsoft.AspNet.Identity.EntityFramework.3.0.0-rc1-final 到目前为止,窒息,回滚然后显示以下错误:

Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache.

我知道这是该库的预发布版本,但这并不是我要在这里实现的激进想法。

非常感谢任何指点。

最佳答案

这似乎是一个已知问题并且 confirmed by Microsoft .它导致this NuGet issue .

根据评论,解决方法是安装 Microsoft.AspNetCore.Identity.EntityFrameworkCore,它与 RC2 等效。据我所知,它尚未正式发布,您可能需要从源代码构建。

关于c# - 将 Microsoft.AspNet.Identity.EntityFramework.3.0.0-rc1-final 安装到类库中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36872977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com