AssemblyBuilder.GetTempFilePhysicalPath(String) Method

Definition

Generates a temporary file path.

C#
public string GetTempFilePhysicalPath(string extension);

Parameters

extension
String

The file extension to use for the temporary file.

Returns

A path to a temporary file, with the specified file extension.

Remarks

A BuildProvider implementation calls the GetTempFilePhysicalPath method to get a temporary file path that is deleted automatically after the assembly is compiled.

The GetTempFilePhysicalPath method generates a unique temporary file path, but does not create the file.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also