Language

TarDirectory.Compression Property

Definition

Gets or sets the compression to apply to the tar archive. Supported values are None (the default), GZip and ZStandard, matched case-insensitively. This parameter is optional; when empty, no compression is applied.

public:
 property System::String ^ Compression { System::String ^ get(); void set(System::String ^ value); };
public string? Compression { get; set; }
member this.Compression : string with get, set
Public Property Compression As String

Property Value

Remarks

Like Format, this is typed as String rather than TarDirectory.TarCompression. When .NET Framework MSBuild dispatches this task to the .NET task host it resolves each parameter type in the parent process by assembly-qualified name; TarDirectory.TarCompression is nested in this task, which exists only in the .NET build of Microsoft.Build.Tasks.Core, so the lookup would bind against the .NET Framework build of that assembly and fail.

Applies to