Bagikan melalui


GenerateResource.References Property

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

Gets or sets the references to load types in .resx files from.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property References As ITaskItem()
public ITaskItem[] References { get; set; }
public:
property array<ITaskItem^>^ References {
    array<ITaskItem^>^ get ();
    void set (array<ITaskItem^>^ value);
}
member References : ITaskItem[] with get, set
function get References () : ITaskItem[]
function set References (value : ITaskItem[])

Property Value

Type: array<Microsoft.Build.Framework.ITaskItem[]
The references to load types in .resx files from.

Remarks

Resx file data elements may have a .NET type. When the .resx file is read, this must be resolved. Typically, it is resolved successfully by using standard type loading rules. If you provide assemblies in References, they take precedence.

This parameter is not required for strongly typed resources.

.NET Framework Security

See Also

Reference

GenerateResource Class

Microsoft.Build.Tasks Namespace