Browse Source

remove unnecessary logger and remove newline.

pull/6034/head
Ilkay Ilknur 6 years ago
parent
commit
2fd8d2b1da
  1. 10
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

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

@ -1,5 +1,4 @@
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp;
using Microsoft.Extensions.Logging;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@ -23,8 +22,7 @@ namespace Volo.Abp.Cli.Bundling
const string ScriptPlaceholderEnd = "<!--/ABP:Scripts-->"; const string ScriptPlaceholderEnd = "<!--/ABP:Scripts-->";
const string SupportedWebAssemblyProjectType = "Microsoft.NET.Sdk.BlazorWebAssembly"; const string SupportedWebAssemblyProjectType = "Microsoft.NET.Sdk.BlazorWebAssembly";
protected IDotNetProjectBuilder DotNetProjectBuilder { get; set; } public IDotNetProjectBuilder DotNetProjectBuilder { get; set; }
protected ILogger<BundlingService> Logger { get; set; }
public async Task BundleAsync(string directory, bool forceBuild) public async Task BundleAsync(string directory, bool forceBuild)
{ {
@ -42,9 +40,7 @@ namespace Volo.Abp.Cli.Bundling
{ {
new DotNetProjectInfo(string.Empty, projectFilePath, true) new DotNetProjectInfo(string.Empty, projectFilePath, true)
}; };
Logger.LogInformation("Build starting...");
DotNetProjectBuilder.Build(projects, string.Empty); DotNetProjectBuilder.Build(projects, string.Empty);
Logger.LogInformation("Build completed...");
} }
var frameworkVersion = GetTargetFrameworkVersion(projectFilePath); var frameworkVersion = GetTargetFrameworkVersion(projectFilePath);
@ -120,7 +116,7 @@ namespace Volo.Abp.Cli.Bundling
builder.AppendLine($"\t<link href=\"{style.Source}\" rel=\"stylesheet\" />"); builder.AppendLine($"\t<link href=\"{style.Source}\" rel=\"stylesheet\" />");
} }
} }
builder.AppendLine($"\t{StylePlaceholderEnd}"); builder.Append($"\t{StylePlaceholderEnd}");
return builder.ToString(); return builder.ToString();
} }
@ -155,7 +151,7 @@ namespace Volo.Abp.Cli.Bundling
builder.AppendLine($"\t<script src=\"{script.Source}\"></script>"); builder.AppendLine($"\t<script src=\"{script.Source}\"></script>");
} }
} }
builder.AppendLine($"\t{ScriptPlaceholderEnd}"); builder.Append($"\t{ScriptPlaceholderEnd}");
return builder.ToString(); return builder.ToString();
} }

Loading…
Cancel
Save