Language

TaskEnvironment.GetTempPath Method

Definition

Gets the temporary folder path for this task environment.

public:
 Microsoft::Build::Framework::AbsolutePath GetTempPath();
public Microsoft.Build.Framework.AbsolutePath GetTempPath();
member this.GetTempPath : unit -> Microsoft.Build.Framework.AbsolutePath
Public Function GetTempPath () As AbsolutePath

Returns

The absolute temporary folder path, ending with a directory separator.

Remarks

In multithreaded mode, this method resolves environment variables from the task-local environment. The fallback environment uses the process environment. This method does not verify that the path exists or that it is accessible.

Applies to