NAnt SDK Documentation - v0.92

CompilerBase.ResourcesList Property

Resources to embed.

[Visual Basic]
<BuildElementArray(ElementType:=null, Name:="resources", Required:=False, ProcessXml:=True)>
Public ReadOnly Property ResourcesList As ResourceFileSetCollection
[C#]
[BuildElementArray(ElementType=null, Name="resources", Required=False, ProcessXml=True)]
public NAnt.DotNet.Types.ResourceFileSetCollection ResourcesList {get;}

Remarks

This can be a combination of resx files and file resources.

.resx files will be compiled by ResGenTask and then embedded into the resulting executable.

The Prefix property is used to make up the resource name added to the assembly manifest for non-resx files.

For .resx files the namespace from the matching source file is used as prefix. This matches the behaviour of Visual Studio.

Multiple resources tags with different namespace prefixes may be specified.

See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace