Open banyula opened 4 years ago
Can you please provide an example? This should be happening but it may be a bug.
$PSScriptRoot is working now that I updated the Tools.
See below screenshot. Same script, executed as PS1 and then executed as EXE. $PSCommandPath is null, as well as $MyInvocation.MyCommand.Path
Same porblem when I build my solution using $PSScriptRoot this isn't working but when I debug it it's fully working I guess something might be wrong when it's build into C#
Variabled $PSScriptRoot and $PSCommandPath are empty in all scripts that were converted to EXE.
Please provide alternatives to get these values.
$invocation.MyCommand.Path does not work either.