gpt4 book ai didi

c# - 已启用迁移 : System. Runtime.Serialization.SerializationException 类型未为成员解析

转载 作者:太空宇宙 更新时间:2023-11-03 17:39:29 25 4
gpt4 key购买 nike

我在持续事件迁移时遇到此错误是我的问题。谷歌也试图解决这些问题。但是这些解决方案并没有解决我遇到的问题。

我该如何解决这个问题?

PM> Enable-migrations
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'System.Data.Entity.Migrations.Design.ToolingFacade+GetContextTypeRunner,EntityFramework, Version=6.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=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

最佳答案

My old project path: D://Programs&Projects/Project

New project path: D://ProgramsProjects/Project

问题解决了。删除 & 字符修复问题。

关于c# - 已启用迁移 : System. Runtime.Serialization.SerializationException 类型未为成员解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34843133/

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