From 88313705bd1904f0a9a09306fb4dee80d9bfaebb Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Mon, 16 Oct 2017 14:31:29 -0700 Subject: [PATCH] Change location of ModuleAnalysisCache so it isn't shared with Windows PowerShell (#5133) Currently, it's using the same location as Windows PowerShell and the two should not be sharing one as the PSModulePaths are different between the two. --- .../engine/Modules/AnalysisCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs index 1980958955..eb03fea383 100644 --- a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs +++ b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs @@ -1040,7 +1040,7 @@ namespace System.Management.Automation #if UNIX Path.Combine(Platform.SelectProductNameForDirectory(Platform.XDG_Type.CACHE), "ModuleAnalysisCache"); #else - Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"Microsoft\Windows\PowerShell\ModuleAnalysisCache"); + Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"Microsoft\PowerShell\ModuleAnalysisCache"); #endif } }