Summary
Defines a
ITask
that invokes a tool through node.js.
- Namespace
- NBuildKit
.MsBuild .Tasks .Script - Base Types
graph TD
Base0["CommandLineToolTask"]-->Type
click Base0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/CommandLineToolTask"
Base1["BaseTask"]-->Base0
click Base1 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/BaseTask"
Base2["Task"]-->Base1
Type["InvokeNodeTool"]
class Type type-node
Syntax
public sealed class InvokeNodeTool : CommandLineToolTask
Constructors
Name | Summary |
---|---|
InvokeNodeTool |
Initializes a new instance of the InvokeNodeTool class.
|
InvokeNodeTool |
Initializes a new instance of the InvokeNodeTool class.
|
Properties
Name | Value | Summary |
---|---|---|
Additional |
ITaskItem[] |
Gets or sets the paths that should be added to the PATH environment variable.
|
Arguments | string |
Gets or sets the arguments for the node tool invocation.
|
DefaultDataHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from CommandLineToolTask
|
DefaultErrorHandler | Data |
Gets the event handler that processes data from the data stream, or standard output stream, of
the command line application.By default logs a message for each output.
Inherited from CommandLineToolTask
|
ErrorInformation | ITaskItem[] |
Gets or sets the collection containing the error codes for the task.
Inherited from BaseTask
|
IgnoreErrors | bool |
Gets or sets a value indicating whether error should be ignored.
|
IgnoreExitCode | bool |
Gets or sets a value indicating whether the exit code should be ignored.
|
Log |
bool |
Gets or sets a value indicating whether the environment variables for the process should be logged.
Inherited from CommandLineToolTask
|
NodeExecutablePath | ITaskItem |
Gets or sets the path to the node.js executable.
|
ToolPath | ITaskItem |
Gets or sets the path to the node tool executable, e.g. npm.
|
WorkingDirectory | ITaskItem |
Gets or sets the full path to the working directory.
|
Methods
Name | Value | Summary |
---|---|---|
ErrorCodeById |
string |
Returns the error code for the given ID.
Inherited from BaseTask
|
Execute |
bool | |
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
GetFullToolPath |
string |
Returns the most complete path for the given executable tool. May return just the name of the tool if the tool path is found via the
PATH environment variable.
Inherited from CommandLineToolTask
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
Invoke |
int |
Invokes the command line tool at the given path with the given arguments.
Inherited from CommandLineToolTask
|
Update |
void |
Updates the environment variables for the application prior to execution.
|
Verbosity |
string |
Gets the verbosity that the current MsBuild instance is running at.
Inherited from BaseTask
static
|