<PackageReference Include="Microsoft.Extensions.Hosting" Version="11.0.0-preview.2.26159.112" />

Microsoft.Extensions.Hosting.HostApplicationBuilderSettings

public sealed class HostApplicationBuilderSettings
Settings for constructing an HostApplicationBuilder.
public string ApplicationName { get; set; }

Gets or sets the application name.

public string[] Args { get; set; }

Gets or sets the command-line arguments to add to the Configuration.

public ConfigurationManager Configuration { get; set; }

public string ContentRootPath { get; set; }

Gets or sets the content root path.

public bool DisableDefaults { get; set; }

Gets or sets a value that indicates whether the HostApplicationBuilder instance is configured with pre-configured defaults.

public string EnvironmentName { get; set; }

Gets or sets the environment name.

Initializes an instance of the HostApplicationBuilderSettings class.