gpt4 book ai didi

asp.net-mvc - ASP MVC 迁移错误 : Type is not resolved for member

转载 作者:行者123 更新时间:2023-12-04 04:38:47 39 4
gpt4 key购买 nike

我在 asp mvc 应用程序中使用迁移时遇到问题。
当我尝试以下命令时: enable-migrations, add-migration,.. 我收到以下错误:

System.Runtime.Serialization.SerializationException: Type is not resolved for member
'System.Data.Entity.Migrations.Design.ToolingFacade+GetContextTypeRunner,EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner) at System.Data.Entity.Migrations.Design.ToolingFacade.GetContextType(String contextTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+GetContextTypeRunner,EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.



我应该如何解决这个问题?已经试过重装 EntityFramework使用 NuGet。

问候

最佳答案

我有同样的问题。

修复:项目路径中有“&”。我已经删除了。

这很有用:migrate.exe common problems

关于asp.net-mvc - ASP MVC 迁移错误 : Type is not resolved for member,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19242790/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com