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

查看:28
本文介绍了EF Core 迁移:无法加载程序集“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.

推荐答案

我通过更改上下文菜单中的开始项目",单击鼠标右键来解决此问题

I solved it by changing the Start Project in the context menu, clicking with the right mouse button

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

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