File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/PowerShellEditorServices/Services/PowerShellContext/Session Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace Microsoft.PowerShell.EditorServices.Services.PowerShellContext
1818 internal class PSReadLinePromptContext : IPromptContext
1919 {
2020 private static readonly string _psReadLineModulePath = Path . Combine (
21- Path . GetDirectoryName ( typeof ( PSReadLinePromptContext ) . Assembly . Location ) ,
21+ AppContext . BaseDirectory ,
2222 ".." ,
2323 ".." ,
2424 ".." ,
@@ -27,7 +27,7 @@ internal class PSReadLinePromptContext : IPromptContext
2727 // When using xUnit (dotnet test) the assemblies are deployed to the
2828 // test project folder, invalidating our relative path assumption.
2929 private static readonly string _psReadLineTestModulePath = Path . Combine (
30- Path . GetDirectoryName ( typeof ( PSReadLinePromptContext ) . Assembly . Location ) ,
30+ AppContext . BaseDirectory ,
3131 ".." ,
3232 ".." ,
3333 ".." ,
@@ -89,6 +89,7 @@ internal static bool TryGetPSReadLineProxy(
8989 {
9090 readLineProxy = null ;
9191 logger . LogTrace ( "Attempting to load PSReadLine" ) ;
92+ Console . WriteLine ( $ "{ _psReadLineModulePath } / { _psReadLineTestModulePath } ") ;
9293 using ( var pwsh = PowerShell . Create ( ) )
9394 {
9495 pwsh . Runspace = runspace ;
You can’t perform that action at this time.
0 commit comments