NAnt SDK Documentation - v0.92

VbcTask.ImportsString Property

NOTE: This property is now obsolete.

Use the <imports> element instead.


Specifies whether the /imports option gets passed to the compiler.

[Visual Basic]
<Obsolete(Message:="Use the <imports> element instead.", IsError:=False), _  TaskAttribute(Name:="imports", Required:=False, ExpandProperties:=True, ProcessXml:=True)>
Public WriteOnly Property ImportsString As String
[C#]
[Obsolete(Message="Use the <imports> element instead.", IsError=False)]
[TaskAttribute(Name="imports", Required=False, ExpandProperties=True, ProcessXml=True)]
public string ImportsString {set;}

Property Value

The value of this attribute is a string that contains one or more namespaces separated by commas.

Remarks

See the Microsoft.NET Framework SDK documentation for details.

Example

Example of an imports attribute

imports="Microsoft.VisualBasic, System, System.Collections, System.Data, System.Diagnostics"

See Also

VbcTask Class | NAnt.DotNet.Tasks Namespace