Browse Source

Merge pull request #9691 from abpframework/volo/issue/7442

CLI: fix add-module command
pull/9692/head
ebicoglu 5 years ago
committed by GitHub
parent
commit
7b1d5bf8f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

5
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

@ -576,11 +576,12 @@ namespace Volo.Abp.Cli.ProjectModification
return; return;
} }
var dbMigrationsProject = projectFiles.FirstOrDefault(p => p.EndsWith(".DbMigrations.csproj")); var dbMigrationsProject = projectFiles.FirstOrDefault(p => p.EndsWith(".DbMigrations.csproj"))
?? projectFiles.FirstOrDefault(p => p.EndsWith(".EntityFrameworkCore.csproj")) ;
if (dbMigrationsProject == null) if (dbMigrationsProject == null)
{ {
Logger.LogDebug("Solution doesn't have a \".DbMigrations\" project."); Logger.LogDebug("Solution doesn't have a Migrations project.");
if (!skipDbMigrations) if (!skipDbMigrations)
{ {

Loading…
Cancel
Save