Condividi tramite


AssignCulture.AssignedFiles Property

Definition

This outgoing list of files is exactly the same as the incoming Files list except that an attribute name "Culture" will have been added if the particular file name is in the form:

 MyResource.<any-valid-culture-id>.resx

The value of Culture will be "<any-valid-culture-id>".

If the incoming item from Files already has a Culture attribute then that original attribute is used instead.

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 ^> ^ AssignedFiles { cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ get(); };
[Microsoft.Build.Framework.Output]
public Microsoft.Build.Framework.ITaskItem[] AssignedFiles { get; }
[Microsoft.Build.Framework.Output]
public Microsoft.Build.Framework.ITaskItem[] AssignedFiles { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
[<Microsoft.Build.Framework.Output>]
member this.AssignedFiles : Microsoft.Build.Framework.ITaskItem[]
[<Microsoft.Build.Framework.Output>]
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.AssignedFiles : Microsoft.Build.Framework.ITaskItem[]
Public ReadOnly Property AssignedFiles As ITaskItem()

Property Value

The list of Files, with a Culture metadata entry added to each item.

Attributes

Remarks

If the incoming item from the Files property already contains a Culture metadata entry, the original metadata entry is used.

The task only assigns a Culture metadata entry if the file name contains a valid culture identifier. The culture identifier must be between the last two dots in the filename.

Applies to