ToolTask.GetWorkingDirectory Method


Returns the directory in which to run the executable file.

 virtual System::String ^ GetWorkingDirectory();
protected virtual string GetWorkingDirectory ();
abstract member GetWorkingDirectory : unit -> string
override this.GetWorkingDirectory : unit -> string
Protected Overridable Function GetWorkingDirectory () As String


The directory in which to run the executable file, or a null reference (Nothing in Visual Basic) if the executable file should be run in the current directory.


This is a method rather than a property so that derived classes (like Exec) can choose to expose a public WorkingDirectory property, and it would be confusing to have two properties.

Applies to