What causes a TypeLoadException on Migrate.exe for EF6?

前端 未结 1 529
渐次进展
渐次进展 2020-12-19 16:08

I\'m trying to run EF\'s migrate.exe from the command line as part of our build process. This is my actual command:

migrate.exe Hydrogen.Data.dll /startupCon         


        
相关标签:
1条回答
  • 2020-12-19 16:54

    I just ran into this today. This can happen when you used the wrong sets of DLL when you run migrate.exe.

    In my case, I used the .Net 4.5 version in migrate.exe but compiled my project using .Net 4.0's version.

    After changing the dlls the problem went away.

    0 讨论(0)
提交回复
热议问题