Skip to content

Commit

Permalink
Switch to SpecialFolder API to get ProgramData folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Jun 29, 2023
1 parent 146d8d6 commit f92d077
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static string GetInstallStateFolder(SdkFeatureBand sdkFeatureBand, string
}
else if (installType == InstallType.Msi)
{
return Path.Combine(Environment.GetEnvironmentVariable("ProgramData")!, "dotnet", "workloads", sdkFeatureBand.ToString(), "InstallState");
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "dotnet", "workloads", sdkFeatureBand.ToString(), "InstallState");
}
else
{
Expand Down

0 comments on commit f92d077

Please sign in to comment.