NAntContrib
Help
Task Reference
<mgmtclassgen> |
v0.85-rc1 |
[This is preliminary documentation and subject to change.]
A task that generates strongly typed WMI classes using mgmtclassgen.exe.
| Attribute | Type | Description | Required |
|---|---|---|---|
| wmiclass | string | Specifies the name of the WMI class to generate the strongly typed class | True |
| language | string | Specifies the language in which to generate the class. Possible values are: CS, VB, JS | False |
| machine | string | Specifies the machine to connect to. | False |
| namespace | string | Namespace of the generated .NET class | False |
| out | string | Path of the file to generate | False |
| password | string | Password to use when connecting to the specified machine | False |
| path | string | Specifies the path to the WMI namespace that contains the class. | False |
| username | string | User name to use when connecting to the specified machine | False |
| failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
| if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
| timeout | int | The maximum amount of time the application is allowed to execute, expressed in milliseconds. Defaults to no time-out. | False |
| unless | bool | Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. | False |
| verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
| Attribute | Type | Description | Required |
|---|---|---|---|
| exename | string | The name of the executable that should be used to launch the external program. | False |
| useruntimeengine | bool | Specifies whether the external program should be executed using a runtime engine, if configured. The default is false. | False |
Contains a collection of Argument elements.
<mgmtclassgen
wmiclass="Win32_LogicalDisk"
language="CS"
machine="SomeMachine"
path="Root\cimv2"
namespace="Winterdom.WMI"
out="${outputdir}\LogicalDisk.cs"
username="Administrator"
password="password"
/>