Udostępnij za pośrednictwem


GenerateResource.Sources Property

Definition

The names of the items to be converted. The extension must be one of the following: .txt, .resx or .resources.

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

Property Value

The items to convert.

Attributes

Remarks

Items passed to this parameter must have one of the following file extensions:

  • .txt: Specifies the extension for a text file to convert. Text files can only contain string resources.

  • .resx: Specifies the extension for an XML-based resource file to convert.

  • .restext: Specifies the same format as .txt. This different extension is useful if you want to clearly distinguish source files that contain resources from other source files in your build process.

.resources: Specifies the extension for a resource file to convert.

Applies to