diff --git a/src/LibraryManager/CacheService/CacheService.cs b/src/LibraryManager/CacheService/CacheService.cs index 0e2cca6d..e5d6d5ee 100644 --- a/src/LibraryManager/CacheService/CacheService.cs +++ b/src/LibraryManager/CacheService/CacheService.cs @@ -42,14 +42,8 @@ public static string CacheFolder { if (string.IsNullOrEmpty(CacheFolderValue)) { - string envVar = "%HOME%"; - - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - envVar = "%USERPROFILE%"; - } - - CacheFolderValue = Path.Combine(Environment.ExpandEnvironmentVariables(envVar), ".librarymanager", "cache"); + string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + CacheFolderValue = Path.Combine(localAppData, ".librarymanager", "cache"); } return CacheFolderValue;