Merge pull request #13074 from abpframework/auto-merge/rel-5-3/1161

Merge branch dev with rel-5.3
pull/12938/head^2
Yunus Emre Kalkan 3 years ago committed by GitHub
commit 0d177c2b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,13 +85,6 @@ public class InstallLibsService : IInstallLibsService, ITransientDependency
// MVC or BLAZOR SERVER
if (projectPath.EndsWith(".csproj"))
{
var packageJsonFilePath = Path.Combine(Path.GetDirectoryName(projectPath), "package.json");
if (!File.Exists(packageJsonFilePath))
{
continue;
}
if (IsYarnAvailable())
{
RunYarn(projectDirectory);
@ -113,8 +106,14 @@ public class InstallLibsService : IInstallLibsService, ITransientDependency
.Where(file => ExcludeDirectory.All(x => file.IndexOf(x, StringComparison.OrdinalIgnoreCase) == -1))
.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))
{
return reader.ReadToEnd().Contains("Microsoft.NET.Sdk.Web");

Loading…
Cancel
Save