I would like to include a common set of functions in a separate PowerShell file that I include in my NuGet package. Call it “InstallUtils.ps1.”
In my PreDeploy script, I’m assuming I can load (import) this script with a simple dot-source:
But when I call the methods in my file, I get a message that the function is not recognized.
Is the path for my dot-source correct? Or is the PreDeploy script run from another directory?
Thanks for the input,