Skip to content

Add SetBinaryLog support to DotNetPackSettings #1522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from https://github.com/nuke-build/nuke/blob/master/source/Nuke.Common/Tools/DotNet/DotNet.json
// Generated from https://github.com/nuke-build/nuke/blob/master/source/Nuke.Common/Tools/DotNet/DotNet.json

using JetBrains.Annotations;
using Newtonsoft.Json;
Expand Down Expand Up @@ -418,6 +418,8 @@ public partial class DotNetPackSettings : ToolOptions
[Argument(Format = "--version-suffix {value}")] public string VersionSuffix => Get<string>(() => VersionSuffix);
/// <summary>Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK.</summary>
[Argument(Format = "--nologo")] public bool? NoLogo => Get<bool?>(() => NoLogo);
/// <summary>Generate MSBuild <a href="https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Binary-Log.md">binary log</a>.</summary>
[Argument(Format = "-bl:{value}")] public string BinaryLog => Get<string>(() => BinaryLog);
/// <summary>All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see <a href="https://learn.microsoft.com/en-us/dotnet/core/sdk/artifacts-output">Artifacts Output Layout</a>. Available since .NET 8 SDK.</summary>
[Argument(Format = "--artifacts-path {value}")] public string ArtifactsPath => Get<string>(() => ArtifactsPath);
/// <summary>Disables restoring multiple projects in parallel.</summary>
Expand Down Expand Up @@ -481,7 +483,7 @@ public partial class DotNetBuildSettings : ToolOptions
[Argument(Format = "/noconsolelogger")] public bool? NoConsoleLogger => Get<bool?>(() => NoConsoleLogger);
/// <summary>Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK.</summary>
[Argument(Format = "--nologo")] public bool? NoLogo => Get<bool?>(() => NoLogo);
/// <summary>Generare MSBuild <a href="https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Binary-Log.md">binary log</a>.</summary>
/// <summary>Generate MSBuild <a href="https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Binary-Log.md">binary log</a>.</summary>
[Argument(Format = "-bl:{value}")] public string BinaryLog => Get<string>(() => BinaryLog);
/// <summary>All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see <a href="https://learn.microsoft.com/en-us/dotnet/core/sdk/artifacts-output">Artifacts Output Layout</a>. Available since .NET 8 SDK.</summary>
[Argument(Format = "--artifacts-path {value}")] public string ArtifactsPath => Get<string>(() => ArtifactsPath);
Expand Down Expand Up @@ -3146,6 +3148,16 @@ [Pure] [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackS
[Pure] [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.NoLogo))]
public static T ToggleNoLogo<T>(this T o) where T : DotNetPackSettings => o.Modify(b => b.Set(() => o.NoLogo, !o.NoLogo));
#endregion
#region BinaryLog
/// <inheritdoc cref="DotNetPackSettings.BinaryLog"/>
[Pure]
[Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.BinaryLog))]
public static T SetBinaryLog<T>(this T o, string v) where T : DotNetPackSettings => o.Modify(b => b.Set(() => o.BinaryLog, v));
/// <inheritdoc cref="DotNetPackSettings.BinaryLog"/>
[Pure]
[Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.BinaryLog))]
public static T ResetBinaryLog<T>(this T o) where T : DotNetPackSettings => o.Modify(b => b.Remove(() => o.BinaryLog));
#endregion
#region ArtifactsPath
/// <inheritdoc cref="DotNetPackSettings.ArtifactsPath"/>
[Pure] [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.ArtifactsPath))]
Expand Down