|
|
@ -1,4 +1,5 @@ |
|
|
using System.IO; |
|
|
using System; |
|
|
|
|
|
using System.IO; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Cli.Bundling; |
|
|
namespace Volo.Abp.Cli.Bundling; |
|
|
@ -13,12 +14,15 @@ static internal class PathHelper |
|
|
static internal string GetWebAssemblyFilePath(string directory, string frameworkVersion, string projectFileName) |
|
|
static internal string GetWebAssemblyFilePath(string directory, string frameworkVersion, string projectFileName) |
|
|
{ |
|
|
{ |
|
|
var outputDirectory = Path.Combine(directory, "bin", "Debug", frameworkVersion); |
|
|
var outputDirectory = Path.Combine(directory, "bin", "Debug", frameworkVersion); |
|
|
return Path.Combine(outputDirectory, projectFileName + ".dll"); |
|
|
var path = Path.Combine(outputDirectory, projectFileName + ".dll"); |
|
|
|
|
|
return !File.Exists(path) ? null : path; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static internal string GetMauiBlazorAssemblyFilePath(string directory, string projectFileName) |
|
|
static internal string GetMauiBlazorAssemblyFilePath(string directory, string projectFileName) |
|
|
{ |
|
|
{ |
|
|
return Directory.GetFiles(directory, "*.dll", SearchOption.AllDirectories).First(f => !f.Contains("android") && f.EndsWith(projectFileName + ".dll")); |
|
|
return Directory.GetFiles(directory, "*.dll", SearchOption.AllDirectories).FirstOrDefault(f => |
|
|
|
|
|
!f.Contains("android") && |
|
|
|
|
|
f.EndsWith(projectFileName + ".dll", StringComparison.OrdinalIgnoreCase)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static internal string GetWwwRootPath(string directory) |
|
|
static internal string GetWwwRootPath(string directory) |
|
|
|