Browse Source

Improve file path checks in PathHelper

pull/22748/head
liangshiwei 10 months ago
parent
commit
e533a054a3
  1. 3
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/PathHelper.cs

3
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/PathHelper.cs

@ -20,8 +20,9 @@ static internal class PathHelper
static internal string GetMauiBlazorAssemblyFilePath(string directory, string projectFileName)
{
return Directory.GetFiles(directory, "*.dll", SearchOption.AllDirectories).FirstOrDefault(f =>
return Directory.GetFiles(Path.Combine(directory, "bin"), "*.dll", SearchOption.AllDirectories).FirstOrDefault(f =>
!f.Contains("android") &&
!f.Contains("windows10") &&
f.EndsWith(projectFileName + ".dll", StringComparison.OrdinalIgnoreCase));
}

Loading…
Cancel
Save