diff --git a/build/Build.csproj b/build/Build.csproj
index 1c1439a92d6..b34d0c5016b 100644
--- a/build/Build.csproj
+++ b/build/Build.csproj
@@ -16,6 +16,7 @@
+
diff --git a/build/BuildContext.cs b/build/BuildContext.cs
index 770d302d88a..c949bc5ba61 100644
--- a/build/BuildContext.cs
+++ b/build/BuildContext.cs
@@ -46,6 +46,13 @@ public BuildContext(ICakeContext context) : base(context)
DotNetMSBuildSettings.WithProperty("Version", Version);
DotNetMSBuildSettings.WithProperty("RepositoryUrl", repositoryUrl);
+ DotNetBuildSettings = new DotNetBuildSettings
+ {
+ MSBuildSettings = DotNetMSBuildSettings,
+ Verbosity = DotNetVerbosity.Minimal,
+ Configuration = buildConfiguration
+ };
+
DotNetPackSettings = new DotNetPackSettings
{
MSBuildSettings = DotNetMSBuildSettings,
@@ -102,6 +109,8 @@ public BuildContext(ICakeContext context) : base(context)
public DotNetMSBuildSettings DotNetMSBuildSettings { get; }
+ public DotNetBuildSettings DotNetBuildSettings { get; }
+
public DotNetPackSettings DotNetPackSettings { get; }
public DotNetPublishSettings DotNetPublishSettings { get; }
diff --git a/build/BuildFrameworksTasks/BuildConsoleCheckTask.cs b/build/BuildFrameworksTasks/BuildConsoleCheckTask.cs
index db95de31c09..c1eb05afe17 100644
--- a/build/BuildFrameworksTasks/BuildConsoleCheckTask.cs
+++ b/build/BuildFrameworksTasks/BuildConsoleCheckTask.cs
@@ -7,5 +7,5 @@ public sealed class BuildConsoleCheckTask : FrostingTask
public override bool ShouldRun(BuildContext context) => context.IsRunningOnWindows();
public override void Run(BuildContext context)
- => context.DotNetPack(context.GetProjectPath(ProjectType.Framework, "ConsoleCheck"), context.DotNetPackSettings);
+ => context.DotNetBuild(context.GetProjectPath(ProjectType.Framework, "ConsoleCheck"), context.DotNetBuildSettings);
}