VS 2022 dà un errore durante l'esecuzione del comando di migrazione, cosa normale quando si usa VS 2019.
PM> Test EntityFramework\Add-Migration Sono installati sia i comandi Entity Framework 6.x che Entity Framework Core. La versione di Entity Framework 6 è in esecuzione. Puoi qualificare completamente il comando per selezionare quale eseguire: 'EntityFramework\Add-Migration' per EF6.x e 'EntityFrameworkCore\Add-Migration' per EF Core.
System.ArgumentNullException: 值不能为 null。 Nome parametro: tipo at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) presso System.Activator.CreateInstance(Type type, Object[] args) su 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(progetto progetto) In System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(StringConfigurationTypeName, Boolean useContextWorkingDirectory) In System.Data.Entity.Migrations.AddMigrationCommand.Execute(Nome stringa, forza booleana, ignoraCambiamenti booleani) In System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Comando Azione) Il valore non può essere nullo. Nome parametro: tipo
|