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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs
|
|
|
@ -576,11 +576,12 @@ namespace Volo.Abp.Cli.ProjectModification |
|
|
|
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) |
|
|
|
{ |
|
|
|
Logger.LogDebug("Solution doesn't have a \".DbMigrations\" project."); |
|
|
|
Logger.LogDebug("Solution doesn't have a Migrations project."); |
|
|
|
|
|
|
|
if (!skipDbMigrations) |
|
|
|
{ |
|
|
|
|