Skip to content

Commit d41e90e

Browse files
committed
Disable xUnit's shadow copying of assemblies
xUnit infuriatingly defaults to enable shadow copying of assemblies, which completely messes up our assembly locations and thus our ability to find modules such as PSReadLine.
1 parent 4e8ff40 commit d41e90e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Session/PSReadLinePromptContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ internal static bool TryGetPSReadLineProxy(
8989
{
9090
readLineProxy = null;
9191
logger.LogTrace("Attempting to load PSReadLine");
92+
Console.WriteLine($"Module path is {_psReadLineTestModulePath}");
9293
using (var pwsh = PowerShell.Create())
9394
{
9495
pwsh.Runspace = runspace;
@@ -101,6 +102,7 @@ internal static bool TryGetPSReadLineProxy(
101102
if (psReadLineType == null)
102103
{
103104
logger.LogWarning("PSConsoleReadline type not found: {Reason}", pwsh.HadErrors ? pwsh.Streams.Error[0].ToString() : "<Unknown reason>");
105+
Console.WriteLine("Failed to GetType but no PowerShell error");
104106
return false;
105107
}
106108

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"parallelizeTestCollections": false
2+
"parallelizeTestCollections": false,
3+
"methodDisplay": "method",
4+
"shadowCopy": false
35
}
46

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"parallelizeTestCollections": false,
3-
"methodDisplay": "method"
3+
"methodDisplay": "method",
4+
"shadowCopy": false
45
}

0 commit comments

Comments
 (0)