We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2445ac commit 000a8e7Copy full SHA for 000a8e7
src/GitVersion.MsBuild/Helpers/FileHelper.cs
@@ -15,12 +15,13 @@ public static class FileHelper
15
{ ".vb", VisualBasicFileContainsVersionAttribute }
16
};
17
18
- public static string TempPath = MakeAndGetTempPath();
+ public static readonly string TempPath = MakeAndGetTempPath();
19
20
private static string MakeAndGetTempPath()
21
{
22
- Directory.CreateDirectory(TempPath);
23
- return Path.Combine(Path.GetTempPath(), "GitVersionTask");
+ var tempPath = Path.Combine(Path.GetTempPath(), "GitVersionTask");
+ Directory.CreateDirectory(tempPath);
24
+ return tempPath;
25
}
26
27
public static void DeleteTempFiles()
0 commit comments