Class DotnetPublishAndStageOptions
- Namespace
- Invex.Atom.Module.Dotnet.Helpers
- Assembly
- Invex.Atom.Module.Dotnet.dll
Represents options for the DotnetPublishAndStage(RootedPath, DotnetPublishAndStageOptions?, CancellationToken) operation.
public sealed record DotnetPublishAndStageOptions
- Inheritance
-
objectDotnetPublishAndStageOptions
Constructors
DotnetPublishAndStageOptions()
public DotnetPublishAndStageOptions()
Properties
CustomPropertiesTransform
Gets or sets a custom transformation function to apply to project property files before publishing.
public Func<string, string>? CustomPropertiesTransform { get; init; }
Property Value
- Func<string, string>
Remarks
This function can be used to modify the content of .csproj or .props files
(e.g., to inject custom properties or modify existing ones) during the publishing process.
PublishOptions
Gets or sets the specific options to pass to the dotnet publish command.
public DotnetPublishOptions? PublishOptions { get; init; }
Property Value
SetVersionsFromProviders
Gets or sets a value indicating whether to automatically set project versions from the build version providers (BuildVersion).
public bool SetVersionsFromProviders { get; init; }
Property Value
- bool
Remarks
If true, the module will attempt to inject the build version into project files
before publishing. Defaults to true.