From 2fd8d2b1dae2d0076ce76f6f6e80b94df10a6fa6 Mon Sep 17 00:00:00 2001 From: Ilkay Ilknur Date: Tue, 3 Nov 2020 17:48:38 +0300 Subject: [PATCH] remove unnecessary logger and remove newline. --- .../Volo/Abp/Cli/Bundling/BundlingService.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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(); }