New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$PSScriptRoot & $PSCommandPath variables replaced with $SitecoreScriptRoot & $SitecoreCommandPath #588

AdamNaj opened this Issue Feb 19, 2016 · 1 comment


None yet
1 participant

AdamNaj commented Feb 19, 2016

The $PSScriptRoot & $PSCommandPath while set and accessible using Get-Variable cmdlet were not usable directly as those are PowerShell automatic variables and as such cannot be influenced from the host directly.

This led to odd situations like the following working:

Write-Log "$((Get-Variable PSCommandPath).Value)"

But not when invoked like this:

Write-Log "$PSCommandPath"

In their place you can now use $SitecoreScriptRoot & $SitecoreCommandPath


This comment has been minimized.


AdamNaj commented Feb 29, 2016

Implemented in commit eb4ba17

@AdamNaj AdamNaj added this to the 4.0 milestone Feb 29, 2016

@AdamNaj AdamNaj self-assigned this Feb 29, 2016

@AdamNaj AdamNaj closed this Feb 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment