Browse Source

Merge branch 'dev' into EngincanV/leptonx-lite

pull/12938/head
maliming 4 years ago
parent
commit
08118a8d84
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 8
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

8
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

@ -112,8 +112,14 @@ public class InstallLibsService : IInstallLibsService, ITransientDependency
.Where(file => ExcludeDirectory.All(x => file.IndexOf(x, StringComparison.OrdinalIgnoreCase) == -1)) .Where(file => ExcludeDirectory.All(x => file.IndexOf(x, StringComparison.OrdinalIgnoreCase) == -1))
.Where(file => .Where(file =>
{ {
if (file.EndsWith("csproj")) if (file.EndsWith(".csproj"))
{ {
var packageJsonFilePath = Path.Combine(Path.GetDirectoryName(file), "package.json");
if (!File.Exists(packageJsonFilePath))
{
return false;
}
using (var reader = File.OpenText(file)) using (var reader = File.OpenText(file))
{ {
return reader.ReadToEnd().Contains("Microsoft.NET.Sdk.Web"); return reader.ReadToEnd().Contains("Microsoft.NET.Sdk.Web");

Loading…
Cancel
Save