Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework core EF迁移:无法加载程序集。确保从x64切换到x86后,启动项目会引用它_Entity Framework Core_Entity Framework Migrations - Fatal编程技术网

Entity framework core EF迁移:无法加载程序集。确保从x64切换到x86后,启动项目会引用它

Entity framework core EF迁移:无法加载程序集。确保从x64切换到x86后,启动项目会引用它,entity-framework-core,entity-framework-migrations,Entity Framework Core,Entity Framework Migrations,将所有项目切换到x86体系结构后,出现以下错误: > dotnet ef migrations add Nullable-Fields --startup-project ..\LairageScanner.BlazorApp Build started... Build succeeded. Could not load assembly 'LairageScanner.Context.SQL'. Ensure it is referenced by the startup projec

将所有项目切换到x86体系结构后,出现以下错误:

> dotnet ef migrations add Nullable-Fields --startup-project ..\LairageScanner.BlazorApp
Build started...
Build succeeded.
Could not load assembly 'LairageScanner.Context.SQL'. Ensure it is referenced by the startup project 'LairageScanner.BlazorApp'.
如上所述,我尝试通过CMD运行该命令,但也为包管理器执行了此操作。我看到了一些解决这个错误的建议:&但他们都没有解决我的问题的方法

当前堆栈:

EF Core 3.1.3
Dotnet Core 3.1

注意:在Git解决方案中,建议转换为x64,然后再转换回来。它确实有效。但我正在寻找一个更持久的解决方案。

我用一个简单的动作修复了它。 您需要确保启动项目是带有Startup.cs文件的项目。此外,请确保所有项目参考都是完整的


嗯,它对我很管用。

我用一个简单的动作就把它修好了一次。 您需要确保启动项目是带有Startup.cs文件的项目。此外,请确保所有项目参考都是完整的

嗯,这对我很管用