Summary
Specifies whether the
/imports
option gets passed to the
compiler.
- Assembly
- NAnt
.DotNet .dll - Namespace
- NAnt
.DotNet .Tasks - Containing Type
- VbcTask
Syntax
[TaskAttribute("imports")]
[Obsolete("Use the <imports> element instead.", false)]
public string ImportsString { set; }
Examples
Example of an imports attribute
imports="Microsoft.VisualBasic, System, System.Collections, System.Data, System.Diagnostics"
Remarks
Attributes
Type | Description |
---|---|
Task |
Indicates that property should be treated as a XML attribute for the task. |
ObsoleteAttribute |
Value
Type | Description |
---|---|
string | The value of this attribute is a string that contains one or more namespaces separated by commas. |