Skip to content

Commit

Permalink
Merge pull request #746 from unoplatform/dev/jela/ci-2022
Browse files Browse the repository at this point in the history
fix: Adjust for powershell context reset
  • Loading branch information
jeromelaban authored Jul 24, 2023
2 parents 31fda30 + 38931d2 commit a432cfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vsts-ci-windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
timeoutInMinutes: 90

pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'

workspace:
clean: all
Expand Down
8 changes: 7 additions & 1 deletion src/Uno.Wasm.Bootstrap/ShellTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,13 @@ private string ValidateEmscripten()

private (int exitCode, string output, string error) ValidatPowershellExecutionPolicy()
{
var result = RunProcess("powershell", "Get-ExecutionPolicy");
var result = RunProcess(
"powershell",
"Get-ExecutionPolicy",
environmentVariables: new[] {
// Workaround for https://github.com/PowerShell/PowerShell/issues/18530#issuecomment-1325691850
("PSModulePath", "")
});

if (result.exitCode != 0)
{
Expand Down

0 comments on commit a432cfb

Please sign in to comment.