Browse Source

Merge pull request #9697 from abpframework/auto-merge/rel-4-4/503

Merge branch dev with rel-4.4
pull/9703/head
maliming 5 years ago
committed by GitHub
parent
commit
7488b929ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      common.props
  2. 5
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

9
common.props

@ -19,4 +19,13 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Content Remove="*.abppkg.json"/>
<None Include="*.abppkg.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
</Project>

5
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)
{

Loading…
Cancel
Save