EF核心迁移:无法加载程序集“ AssemblyName” [英] EF Core Migration: Could not load assembly 'AssemblyName'

查看:386
本文介绍了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.

推荐答案


  1. 右键单击EndPoint项目

  2. 单击设置作为启动项目

  1. Right Click on EndPoint Project
  2. Click on the Set As Startup Project

这篇关于EF核心迁移:无法加载程序集“ AssemblyName”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆