Properties/launchSettings.json
{ "profiles": { "PowerProcess": { "commandName": "Executable", "executablePath": "C:\\extern\\lab\\powershell\\src\\powershell-win-core\\bin\\Debug\\net5.0\\pwsh-tst.exe", "commandLineArgs": "-noprofile -noexit -command \" write-host 'start!'; import-module (Join-Path (Get-Location) $env:ModuleUnderTest) -Force; Invoke-ProcessFast -Wait -FilePath pwsh -ArgumentList @('-noprofile', '-command', $env:TestCommand) ; write-host 'ok!' \"", "environmentVariables": { "TestCommand": "0", "ModuleUnderTest": "PowerProcess.dll", "POWERSHELL_TELEMETRY_OPTOUT": "true" } } } } |