VS 2022, göç komutunu çalıştırırken hata verir, bu VS 2019 kullanıldığında normaldir.
PM> EntityFramework\Add-Migration test Hem Entity Framework 6.x hem de Entity Framework Core komutları yüklüdür. Entity Framework 6 sürümü yürütülüyor. EF6.x için 'EntityFramework\Add-Migration' ve EF Core için 'EntityFrameworkCore\Add-Migration' komutunu tam olarak nitelendirmek imkanı verebilirsiniz.
System.ArgumentNullException: 值不能为 null。 Parametre adı: tür at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Tip tipi, Nesne[] args) at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(Project project, Int32 shellVersion) System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebSiteProject(Project project) içinde System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetTargetDir(Project project) içinde In System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, Boolean useContextWorkingDirectory) In System.Data.Entity.Migrations.AddMigrationCommand.Execute(String name, Boolean force, Boolean ignoreChanges) System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) içinde Değer null olamaz. Parametre adı: tür
|