diff --git a/src/Fallout.Common/Tools/DotNet/DotNet.Generated.cs b/src/Fallout.Common/Tools/DotNet/DotNet.Generated.cs index f80a0f74..1e2b76e0 100644 --- a/src/Fallout.Common/Tools/DotNet/DotNet.Generated.cs +++ b/src/Fallout.Common/Tools/DotNet/DotNet.Generated.cs @@ -47,7 +47,7 @@ public partial class DotNetTasks : ToolTasks, IRequirePathTool /// public static IEnumerable<(DotNetRestoreSettings Settings, IReadOnlyCollection Output)> DotNetRestore(CombinatorialConfigure configurator, int degreeOfParallelism = 1, bool completeOnFailure = false) => configurator.Invoke(DotNetRestore, degreeOfParallelism, completeOnFailure); ///

The dotnet pack command builds the project and creates NuGet packages. The result of this command is a NuGet package. If the --include-symbols option is present, another package containing the debug symbols is created.

NuGet dependencies of the packed project are added to the .nuspec file, so they're properly resolved when the package is installed. Project-to-project references aren't packaged inside the project. Currently, you must have a package per project if you have project-to-project dependencies.

By default, dotnet pack builds the project first. If you wish to avoid this behavior, pass the --no-build option. This is often useful in Continuous Integration (CI) build scenarios where you know the code was previously built.

You can provide MSBuild properties to the dotnet pack command for the packing process. For more information, see NuGet metadata properties and the MSBuild Command-Line Reference.

For more details, visit the official website.

- ///

This is a CLI wrapper with fluent API that allows to modify the following arguments:

  • <project> via
  • --artifacts-path via
  • --configuration via
  • --disable-parallel via
  • --force via
  • --force-evaluate via
  • --ignore-failed-sources via
  • --include-source via
  • --include-symbols via
  • --lock-file-path via
  • --locked-mode via
  • --no-build via
  • --no-cache via
  • --no-dependencies via
  • --no-restore via
  • --nologo via
  • --output via
  • --packages via
  • --property via
  • --runtime via
  • --serviceable via
  • --source via
  • --use-lock-file via
  • --verbosity via
  • --version-suffix via
+ ///

This is a CLI wrapper with fluent API that allows to modify the following arguments:

  • <project> via
  • --artifacts-path via
  • --configuration via
  • --disable-parallel via
  • --force via
  • --force-evaluate via
  • --ignore-failed-sources via
  • --include-source via
  • --include-symbols via
  • --lock-file-path via
  • --locked-mode via
  • --no-build via
  • --no-cache via
  • --no-dependencies via
  • --no-restore via
  • --nologo via
  • --output via
  • --packages via
  • --property via
  • --runtime via
  • --serviceable via
  • --source via
  • --use-lock-file via
  • --verbosity via
  • --version-suffix via
  • -bl via
public static IReadOnlyCollection DotNetPack(DotNetPackSettings options = null) => new DotNetTasks().Run(options); /// public static IReadOnlyCollection DotNetPack(Configure configurator) => new DotNetTasks().Run(configurator.Invoke(new DotNetPackSettings())); @@ -414,6 +414,8 @@ public partial class DotNetPackSettings : ToolOptions [Argument(Format = "--nologo")] public bool? NoLogo => Get(() => NoLogo); /// All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see Artifacts Output Layout. Available since .NET 8 SDK. [Argument(Format = "--artifacts-path {value}")] public string ArtifactsPath => Get(() => ArtifactsPath); + /// Generate MSBuild binary log. + [Argument(Format = "-bl:{value}")] public string BinaryLog => Get(() => BinaryLog); /// Disables restoring multiple projects in parallel. [Argument(Format = "--disable-parallel")] public bool? DisableParallel => Get(() => DisableParallel); /// Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file. @@ -474,7 +476,7 @@ public partial class DotNetBuildSettings : ToolOptions [Argument(Format = "/noconsolelogger")] public bool? NoConsoleLogger => Get(() => NoConsoleLogger); /// Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK. [Argument(Format = "--nologo")] public bool? NoLogo => Get(() => NoLogo); - /// Generare MSBuild binary log. + /// Generate MSBuild binary log. [Argument(Format = "-bl:{value}")] public string BinaryLog => Get(() => BinaryLog); /// All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see Artifacts Output Layout. Available since .NET 8 SDK. [Argument(Format = "--artifacts-path {value}")] public string ArtifactsPath => Get(() => ArtifactsPath); @@ -3124,6 +3126,14 @@ public static partial class DotNetPackSettingsExtensions [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.ArtifactsPath))] public static T ResetArtifactsPath(this T o) where T : DotNetPackSettings => o.Modify(b => b.Remove(() => o.ArtifactsPath)); #endregion + #region BinaryLog + /// + [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.BinaryLog))] + public static T SetBinaryLog(this T o, string v) where T : DotNetPackSettings => o.Modify(b => b.Set(() => o.BinaryLog, v)); + /// + [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.BinaryLog))] + public static T ResetBinaryLog(this T o) where T : DotNetPackSettings => o.Modify(b => b.Remove(() => o.BinaryLog)); + #endregion #region DisableParallel /// [Builder(Type = typeof(DotNetPackSettings), Property = nameof(DotNetPackSettings.DisableParallel))] diff --git a/src/Fallout.Common/Tools/DotNet/DotNet.json b/src/Fallout.Common/Tools/DotNet/DotNet.json index 3bee6104..59fa2ff0 100644 --- a/src/Fallout.Common/Tools/DotNet/DotNet.json +++ b/src/Fallout.Common/Tools/DotNet/DotNet.json @@ -434,6 +434,12 @@ "type": "string", "format": "--artifacts-path {value}", "help": "All build output files from the executed command will go in subfolders under the specified path, separated by project. For more information see Artifacts Output Layout. Available since .NET 8 SDK." + }, + { + "name": "BinaryLog", + "type": "string", + "format": "-bl:{value}", + "help": "Generate MSBuild binary log." } ] } @@ -531,7 +537,7 @@ "name": "BinaryLog", "type": "string", "format": "-bl:{value}", - "help": "Generare MSBuild binary log." + "help": "Generate MSBuild binary log." }, { "name": "ArtifactsPath",