We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
invokeOnImport = { $public = Get-ChildItem -Path "$PSScriptRoot/public" -Filter *.ps1 foreach ($script in $public) { . $script.FullName $functionInfo = Get-Command -Name $script.BaseName . (Resolve-DynamicFunctionDefinition -FunctionInfo $functionInfo) } }
$PSScriptRoot
The text was updated successfully, but these errors were encountered:
No branches or pull requests
General summary of the issue
Describe your environment
PowerShell version : 7.4.0
OS version : Microsoft Windows NT 10.0.19045.0
Steps to reproduce
Expected Behavior
$PSScriptRoot
is set to the appropriate path of the script/function being called.Current Behavior
$PSScriptRoot
is null.Possible Solution? (optional)
The text was updated successfully, but these errors were encountered: