Compartilhar via


GenerateApplicationManifest.FileAssociations Property

Definition

Gets or sets a list of one or more file type that are associated with the ClickOnce deployment manifest. File associations only valid only when .NET Framework 3.5 or later is targeted.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ FileAssociations { cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ get(); void set(cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ value); };
public Microsoft.Build.Framework.ITaskItem[] FileAssociations { get; set; }
public Microsoft.Build.Framework.ITaskItem[] FileAssociations { get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.FileAssociations : Microsoft.Build.Framework.ITaskItem[] with get, set
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.FileAssociations : Microsoft.Build.Framework.ITaskItem[] with get, set
Public Property FileAssociations As ITaskItem()

Property Value

A list of file types that are associated with the generated manifest.

Attributes

Remarks

File types can be custom. The following is an example of a <fileAssociation> Element (ClickOnce Application):

<FileAssociation Include=".nyt">
    <ProgId>NewYorkTimes.Document</ProgId>
    <DefaultIcon>nyt.ico</DefaultIcon>
    <Description>New York Times Reader document</Description>
</FileAssociation>

Applies to