diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs index 8610b3da4d..3057e81002 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs @@ -1,5 +1,4 @@ using Microsoft.CodeAnalysis.CSharp; -using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.IO; @@ -23,8 +22,7 @@ namespace Volo.Abp.Cli.Bundling const string ScriptPlaceholderEnd = ""; const string SupportedWebAssemblyProjectType = "Microsoft.NET.Sdk.BlazorWebAssembly"; - protected IDotNetProjectBuilder DotNetProjectBuilder { get; set; } - protected ILogger Logger { get; set; } + public IDotNetProjectBuilder DotNetProjectBuilder { get; set; } public async Task BundleAsync(string directory, bool forceBuild) { @@ -42,9 +40,7 @@ namespace Volo.Abp.Cli.Bundling { new DotNetProjectInfo(string.Empty, projectFilePath, true) }; - Logger.LogInformation("Build starting..."); DotNetProjectBuilder.Build(projects, string.Empty); - Logger.LogInformation("Build completed..."); } var frameworkVersion = GetTargetFrameworkVersion(projectFilePath); @@ -120,7 +116,7 @@ namespace Volo.Abp.Cli.Bundling builder.AppendLine($"\t"); } } - builder.AppendLine($"\t{StylePlaceholderEnd}"); + builder.Append($"\t{StylePlaceholderEnd}"); return builder.ToString(); } @@ -155,7 +151,7 @@ namespace Volo.Abp.Cli.Bundling builder.AppendLine($"\t"); } } - builder.AppendLine($"\t{ScriptPlaceholderEnd}"); + builder.Append($"\t{ScriptPlaceholderEnd}"); return builder.ToString(); }