diff --git a/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs b/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs
index e543472107..dc7e4304eb 100644
--- a/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs
+++ b/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -35,7 +35,7 @@ public void Write(CakeReport report)
// Create a table
var table = new Table().Border(TableBorder.SimpleHeavy);
table.Width(100);
- table.BorderStyle(new Style().Foreground(ConsoleColor.Green));
+ table.BorderStyle(default(Style).Foreground(ConsoleColor.Green));
var includeSkippedReasonColumn = report.Any(r => !string.IsNullOrEmpty(r.SkippedMessage));
var rowStyle = new Style(ConsoleColor.Green);
diff --git a/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs b/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs
index 4f90895b04..b1de7d1484 100644
--- a/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs
+++ b/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -24,7 +24,7 @@ public DefaultCommand(IServiceCollection services)
_services = services ?? throw new ArgumentNullException(nameof(services));
}
- public override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken)
+ protected override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken)
{
// Register arguments
var arguments = CreateCakeArguments(context.Remaining, settings);
diff --git a/src/Cake/Commands/DefaultCommand.cs b/src/Cake/Commands/DefaultCommand.cs
index 66e50db63a..4082aa680b 100644
--- a/src/Cake/Commands/DefaultCommand.cs
+++ b/src/Cake/Commands/DefaultCommand.cs
@@ -58,7 +58,7 @@ public DefaultCommand(
/// The command settings.
/// The cancellation token to monitor for cancel requests.
/// The exit code.
- public override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken)
+ protected override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken)
{
try
{
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index 3630e6fb17..765346752e 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -27,9 +27,9 @@
-
-
-
+
+
+