程序集EntityFramework的System.Data.Entity.Properties.Resources.Migrate.resources上的MissingManifestResourceException

问题描述 投票:0回答:1

我不太确定这是一个问题,也不是一个陈述。在找到最终解决方案之前,我为这个错误苦苦挣扎了很长时间。

我们已将实体框架从6.2.0更新到6.4.0。我们的构建过程运行完美,但是我们的发布在Migrate阶段令人窒息。记录的错误是:

Unhandled Exception: System.Resources.MissingManifestResourceException: 
    Could not find any resources appropriate for the specified culture or the neutral culture.  
    Make sure "System.Data.Entity.Properties.Resources.Migrate.resources" was correctly embedded or linked into assembly "EntityFramework" at compile time, or that all the satellite assemblies required are loadable and fully signed.

我到处搜索,发现有关未嵌入resx文件的内容……我没有尝试过。

我最终发现,随着Entity Framework 6.3.0的更新,不再使用MIGRATE.EXE命令。替换为EF6.EXE。这个新的命令行实用程序的命令行参数集稍有不同,但是一旦我们更新了发布过程,事情就会开始按预期运行。

我希望这对其他人有帮助。

c# database entity-framework
1个回答
0
投票

我最终发现,随着Entity Framework 6.3.0的更新,不再使用MIGRATE.EXE命令。替换为EF6.EXE。这个新的命令行实用程序的命令行参数集稍有不同,但是一旦我们更新了发布过程,事情就会开始按预期运行。

TL; DR

不要使用migrate.exe。...请使用ef6.exe

我希望这对其他人有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.