Skip to content

Commit

Permalink
Update Microsoft.Extensions.Logging to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Nov 25, 2021
1 parent bd668ea commit 3eab320
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Cake.Bakery/Cake.Bakery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="Cake.Core" Version="1.3.0" />
<PackageReference Include="Cake.NuGet" Version="1.3.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cake.Scripting.Abstractions\Cake.Scripting.Abstractions.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Cake.Bakery.Tests.Integration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Xunit.Assert" Version="2.4.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Cake.Scripting.Abstractions\Cake.Scripting.Abstractions.csproj" />
Expand Down
8 changes: 5 additions & 3 deletions tests/integration/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Integration
{

class MonoScriptGenerationProcess : IScriptGenerationProcess
{
private readonly ILogger _logger;
Expand Down Expand Up @@ -278,8 +278,10 @@ static void Should_Install_Addins()
static int Main(string[] args)
{
var isRunningOnMono = !string.IsNullOrWhiteSpace(MonoRuntime);
var loggerFactory = new LoggerFactory()
.AddConsole(Microsoft.Extensions.Logging.LogLevel.Debug);
using var loggerFactory = LoggerFactory.Create(
builder => builder
.AddConsole()
.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Debug));

var bakeryPath = args[0];
workingDirectory = Environment.CurrentDirectory.Replace('\\', '/');;
Expand Down

0 comments on commit 3eab320

Please sign in to comment.