c# - 脚手架标识时的 VS 错误消息

标签 c# visual-studio entity-framework asp.net-core asp.net-identity

有人可以帮助我理解此 Visual Studio 错误消息并提出修复建议吗? 我在搭建 Identity 时收到错误消息。

这是error message我得到:

There was an error running the selected code generator: 'Error: An assembly specified in the applciation dependencies manifest (Intacct.deps.json) has already been found but with a different file extension: package: 'Microsoft.VisualStudio.Web.CodeGeneration.Design', version: '3.1.0' path: 'lib/net461/dotnet-aspnet-codegenerator-design.exe' previously found assembly: 'C:\MyPath\Users\MyUser.nuget\packages\microsoft.visualstudio.web.codegeneration.design\3.1.0\lib\netcoreapp3.1\dotnet-aspnet-codegenerator-design.dll

最佳答案

出现此问题的原因是 NuGet 管理器已具有 Microsoft.VisualStudio.Web.CodeGeneration.Design 的引用。在 C:\Users\Lenovo\.nuget\packages\microsoft.visualstudio.web.codegeneration.design\3.1.1\文件夹在C盘。 项目包中也提供了引用

请按照以下步骤解决该错误,

  1. 转到您的项目并展开“依赖项”选项卡
  2. 展开包并搜索 Microsoft.visualstudio.web.codegeneration.design(3.1.1)
  3. 右键单击包名称并删除该包。
  4. 构建项目并尝试。

关于c# - 脚手架标识时的 VS 错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59416220/

相关文章:

visual-studio - 无法从 IP 访问 Visual Studio 项目,只能访问 http ://localhost

c# - 在 Entity Framework 中使用存储过程

c# - 解决 LINQ to Entities 无法识别该方法的方法?

c# - 如何确定作为参数传递的 object[] 包含什么?

javascript - 获取表中的行数

c# - 一个事件监听器是否可以被限制为只有一个订阅者?

visual-studio - Visual Studio 2008 是否与 SourceSafe 集成?

c# - 未连接控制台时,Console.WriteLine 是否会在 WinForms 应用程序中占用任何时间?

c# - Distinct 在 Entity Framework 上不起作用

C#-泛型类中的数组协变