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 75d1b24 commit 1cd69f3Copy full SHA for 1cd69f3
src/RazorSdk/Tool/ServerProtocol/ServerConnection.cs
@@ -77,7 +77,13 @@ public static string GetTempPath(string workingDir)
77
}
78
79
80
- return Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
+ var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
81
+ if (Path.IsPathRooted(userProfile))
82
+ {
83
+ return userProfile;
84
+ }
85
+
86
+ return Environment.GetEnvironmentVariable("SYSTEMROOT");
87
88
89
public static Task<ServerResponse> RunOnServer(
0 commit comments