Browse Source

Merge pull request #15060 from abpframework/liangshiwei/cli

Skip bundle For OSX
pull/15064/head
maliming 4 years ago
committed by GitHub
parent
commit
432526b01a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

7
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Xml; using System.Xml;
@ -31,6 +32,12 @@ public class BundlingService : IBundlingService, ITransientDependency
public async Task BundleAsync(string directory, bool forceBuild, string projectType = BundlingConsts.WebAssembly) public async Task BundleAsync(string directory, bool forceBuild, string projectType = BundlingConsts.WebAssembly)
{ {
if(RuntimeInformation.IsOSPlatform(OSPlatform.OSX) && projectType == BundlingConsts.MauiBlazor)
{
Logger.LogWarning("ABP bundle command does not support OSX for MAUI Blazor");
return;
}
var projectFiles = Directory.GetFiles(directory, "*.csproj"); var projectFiles = Directory.GetFiles(directory, "*.csproj");
if (!projectFiles.Any()) if (!projectFiles.Any())
{ {

Loading…
Cancel
Save