VS 2022 gibt beim Ausführen des Migrationsbefehls einen Fehler, was bei VS 2019 normal ist.
PM> EntityFramework\Add-Migration Test Sowohl die Befehle Entity Framework 6.x als auch Entity Framework Core sind installiert. Die Version von Entity Framework 6 wird ausgeführt. Sie können den Befehl vollständig qualifizieren, um auszuwählen, welches ausgeführt werden soll: 'EntityFramework\Add-Migration' für EF6.x und 'EntityFrameworkCore\Add-Migration' für EF Core.
System.ArgumentNullException: 值不能为 null。 Parametername: Typ at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, Object[] args) bei System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(Project project, Int32 shellVersion) In System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebSiteProject(Project project) In System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetTargetDir(Project project) In System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, boolean useContextWorkingDirectory) In System.Data.Entity.Migrations.AddMigrationCommand.Execute(Zeichenzeichen, boolesche Kraft, boolesche Force, boolesche ignorierende Änderungen) Im Befehl System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action) Der Wert kann nicht null sein. Parametername: Typ
|