EF核心迁移:无法加载程序集“ AssemblyName”

编程入门 行业动态 更新时间:2024-10-27 03:34:51
本文介绍了EF核心迁移:无法加载程序集“ AssemblyName”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

命令 Add-Migration InitialCreate生成以下错误消息:

The command "Add-Migration InitialCreate" generates the following error message:

无法加载程序集 MathModelApp。确保启动项目 MathModelApp已引用它。

Could not load assembly 'MathModelApp'. Ensure it is referenced by the startup project 'MathModelApp'.

错误消息是什么意思?

我正在使用netcore 2.1,目标平台是x86。

I am using netcore 2.1, Target Platform is x86.

推荐答案

  • 右键单击EndPoint项目
  • 单击设置作为启动项目
  • Right Click on EndPoint Project
  • Click on the Set As Startup Project
  • 更多推荐

    EF核心迁移:无法加载程序集“ AssemblyName”

    本文发布于:2023-11-16 07:10:07,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1602101.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:加载   核心   程序   EF   AssemblyName

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!