We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e81dad7 commit d0621e5Copy full SHA for d0621e5
src/Shared/Tests/PowerShellTestUtilities.cs
@@ -15,11 +15,11 @@ public static bool WindowsEnvironment()
15
string? powershellCommand = null;
16
// Verify that the PowerShell command executes successfully.
17
foreach(string command in
18
- new string[]{ "pwsh", WindowsEnvironment() ? "powershell" : null!}.Where(item=> item is not null))
+ new string[]{ "pwsh", WindowsEnvironment() ? "PowerShell" : null!}.Where(item=> item is not null))
19
{
20
try
21
22
- Process powershell = Process.Start(command, "-h");
+ Process powershell = Process.Start(command, "-Version");
23
powershell.WaitForExit();
24
if (powershell.ExitCode == 0)
25
0 commit comments