Compartilhar via


ToolTask.GetWorkingDirectory Method

Returns the directory in which to run the executable file.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Protected Overridable Function GetWorkingDirectory As String
protected virtual string GetWorkingDirectory()
protected:
virtual String^ GetWorkingDirectory()
abstract GetWorkingDirectory : unit -> string  
override GetWorkingDirectory : unit -> string
protected function GetWorkingDirectory() : String

Return Value

Type: System.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.

Remarks

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.

.NET Framework Security

See Also

Reference

ToolTask Class

Microsoft.Build.Utilities Namespace