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.
This commit is contained in:
Steve Lee
2017-10-16 14:31:29 -07:00
committed by Dongbo Wang
parent cfbd8986fd
commit 88313705bd
@@ -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
}
}