VS 2022 wyświetla błąd podczas wykonywania polecenia migracji, co jest normalne przy użyciu VS 2019.
Test PM> EntityFramework\Add-Migration Zainstalowane są zarówno polecenia Entity Framework 6.x, jak i Entity Framework Core. Wersja Entity Framework 6 jest wykonywana. Możesz w pełni zakwalifikować polecenie do wybrania, które wykonać: 'EntityFramework\Add-Migration' dla EF6.x oraz 'EntityFrameworkCore\Add-Migration' dla EF Core.
System.ArgumentNullException: 值不能为 null。 Nazwa parametru: typ at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(typ typu, Object[] args) at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(Project project, Int32 shellVersion) W System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebSiteProject(Project project) In System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetTargetDir(Project project) W System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, boolean useContextWorkingDirectory) W System.Data.Entity.Migrations.AddMigrationCommand.Execute(Nazwa ciągu ciągu, siła boolowska, ignoreChanges) W System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Wartość nie może być zerowa. Nazwa parametru: typ
|