Skip to content

Commit 6dc801a

Browse files
committed
Fix missing arguments in DotNetTasks
1 parent 24a9e2e commit 6dc801a

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ public static IReadOnlyCollection<Output> DotNetPack(Configure<DotNetPackSetting
524524
/// <li><c>--output</c> via <see cref="DotNetBuildSettings.OutputDirectory"/></li>
525525
/// <li><c>--packages</c> via <see cref="DotNetBuildSettings.PackageDirectory"/></li>
526526
/// <li><c>--runtime</c> via <see cref="DotNetBuildSettings.Runtime"/></li>
527+
/// <li><c>--self-contained</c> via <see cref="DotNetBuildSettings.SelfContained"/></li>
527528
/// <li><c>--source</c> via <see cref="DotNetBuildSettings.Sources"/></li>
528529
/// <li><c>--use-lock-file</c> via <see cref="DotNetBuildSettings.UseLockFile"/></li>
529530
/// <li><c>--verbosity</c> via <see cref="DotNetBuildSettings.Verbosity"/></li>
@@ -564,6 +565,7 @@ public static IReadOnlyCollection<Output> DotNetBuild(DotNetBuildSettings toolSe
564565
/// <li><c>--output</c> via <see cref="DotNetBuildSettings.OutputDirectory"/></li>
565566
/// <li><c>--packages</c> via <see cref="DotNetBuildSettings.PackageDirectory"/></li>
566567
/// <li><c>--runtime</c> via <see cref="DotNetBuildSettings.Runtime"/></li>
568+
/// <li><c>--self-contained</c> via <see cref="DotNetBuildSettings.SelfContained"/></li>
567569
/// <li><c>--source</c> via <see cref="DotNetBuildSettings.Sources"/></li>
568570
/// <li><c>--use-lock-file</c> via <see cref="DotNetBuildSettings.UseLockFile"/></li>
569571
/// <li><c>--verbosity</c> via <see cref="DotNetBuildSettings.Verbosity"/></li>
@@ -601,6 +603,7 @@ public static IReadOnlyCollection<Output> DotNetBuild(Configure<DotNetBuildSetti
601603
/// <li><c>--output</c> via <see cref="DotNetBuildSettings.OutputDirectory"/></li>
602604
/// <li><c>--packages</c> via <see cref="DotNetBuildSettings.PackageDirectory"/></li>
603605
/// <li><c>--runtime</c> via <see cref="DotNetBuildSettings.Runtime"/></li>
606+
/// <li><c>--self-contained</c> via <see cref="DotNetBuildSettings.SelfContained"/></li>
604607
/// <li><c>--source</c> via <see cref="DotNetBuildSettings.Sources"/></li>
605608
/// <li><c>--use-lock-file</c> via <see cref="DotNetBuildSettings.UseLockFile"/></li>
606609
/// <li><c>--verbosity</c> via <see cref="DotNetBuildSettings.Verbosity"/></li>
@@ -1879,6 +1882,10 @@ public partial class DotNetBuildSettings : ToolSettings
18791882
/// </summary>
18801883
public virtual string OutputDirectory { get; internal set; }
18811884
/// <summary>
1885+
/// Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK
1886+
/// </summary>
1887+
public virtual bool? SelfContained { get; internal set; }
1888+
/// <summary>
18821889
/// Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the <a href="https://docs.microsoft.com/en-us/dotnet/core/rid-catalog">RID catalog</a>.
18831890
/// </summary>
18841891
public virtual string Runtime { get; internal set; }
@@ -1963,6 +1970,7 @@ protected override Arguments ConfigureProcessArguments(Arguments arguments)
19631970
.Add("--no-incremental", NoIncremental)
19641971
.Add("--no-restore", NoRestore)
19651972
.Add("--output {value}", OutputDirectory)
1973+
.Add("--self-contained {value}", SelfContained)
19661974
.Add("--runtime {value}", Runtime)
19671975
.Add("--verbosity {value}", Verbosity)
19681976
.Add("--version-suffix {value}", VersionSuffix)
@@ -11108,6 +11116,63 @@ public static T ResetOutputDirectory<T>(this T toolSettings) where T : DotNetBui
1110811116
return toolSettings;
1110911117
}
1111011118
#endregion
11119+
#region SelfContained
11120+
/// <summary>
11121+
/// <p><em>Sets <see cref="DotNetBuildSettings.SelfContained"/></em></p>
11122+
/// <p>Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK</p>
11123+
/// </summary>
11124+
[Pure]
11125+
public static T SetSelfContained<T>(this T toolSettings, bool? selfContained) where T : DotNetBuildSettings
11126+
{
11127+
toolSettings = toolSettings.NewInstance();
11128+
toolSettings.SelfContained = selfContained;
11129+
return toolSettings;
11130+
}
11131+
/// <summary>
11132+
/// <p><em>Resets <see cref="DotNetBuildSettings.SelfContained"/></em></p>
11133+
/// <p>Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK</p>
11134+
/// </summary>
11135+
[Pure]
11136+
public static T ResetSelfContained<T>(this T toolSettings) where T : DotNetBuildSettings
11137+
{
11138+
toolSettings = toolSettings.NewInstance();
11139+
toolSettings.SelfContained = null;
11140+
return toolSettings;
11141+
}
11142+
/// <summary>
11143+
/// <p><em>Enables <see cref="DotNetBuildSettings.SelfContained"/></em></p>
11144+
/// <p>Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK</p>
11145+
/// </summary>
11146+
[Pure]
11147+
public static T EnableSelfContained<T>(this T toolSettings) where T : DotNetBuildSettings
11148+
{
11149+
toolSettings = toolSettings.NewInstance();
11150+
toolSettings.SelfContained = true;
11151+
return toolSettings;
11152+
}
11153+
/// <summary>
11154+
/// <p><em>Disables <see cref="DotNetBuildSettings.SelfContained"/></em></p>
11155+
/// <p>Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK</p>
11156+
/// </summary>
11157+
[Pure]
11158+
public static T DisableSelfContained<T>(this T toolSettings) where T : DotNetBuildSettings
11159+
{
11160+
toolSettings = toolSettings.NewInstance();
11161+
toolSettings.SelfContained = false;
11162+
return toolSettings;
11163+
}
11164+
/// <summary>
11165+
/// <p><em>Toggles <see cref="DotNetBuildSettings.SelfContained"/></em></p>
11166+
/// <p>Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is <c>true</c> if a runtime identifier is specified. Available since .NET 6 SDK</p>
11167+
/// </summary>
11168+
[Pure]
11169+
public static T ToggleSelfContained<T>(this T toolSettings) where T : DotNetBuildSettings
11170+
{
11171+
toolSettings = toolSettings.NewInstance();
11172+
toolSettings.SelfContained = !toolSettings.SelfContained;
11173+
return toolSettings;
11174+
}
11175+
#endregion
1111111176
#region Runtime
1111211177
/// <summary>
1111311178
/// <p><em>Sets <see cref="DotNetBuildSettings.Runtime"/></em></p>

source/Nuke.Common/Tools/DotNet/DotNet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,4 +1249,4 @@
12491249
]
12501250
}
12511251
]
1252-
}
1252+
}

0 commit comments

Comments
 (0)