Browse Source

Cli: Fix SolutionModuleAdder ChangeDomainTestReferenceToMongoDB

pull/8099/head
Yunus Emre Kalkan 6 years ago
parent
commit
23e281cf1d
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/SolutionModuleAdder.cs

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

@ -245,8 +245,8 @@ namespace Volo.Abp.Cli.ProjectModification
return; return;
} }
var csprojFile = Directory.GetFiles(projectFolderPath).FirstOrDefault(p => p.EndsWith(".csproj")); var csprojFile = Directory.GetFiles(projectFolderPath, ".csproj", SearchOption.AllDirectories).FirstOrDefault();
var moduleFile = Directory.GetFiles(projectFolderPath).FirstOrDefault(p => p.EndsWith("DomainTestModule.cs")); var moduleFile = Directory.GetFiles(projectFolderPath, "*DomainTestModule.cs", SearchOption.AllDirectories).FirstOrDefault();
if (csprojFile == null || moduleFile == null) if (csprojFile == null || moduleFile == null)
{ {

Loading…
Cancel
Save