Relative Content

Tag Archive for powershellvisual-studio-codevscode-extensions

Import functions from other ps1 files referencing it

let me clarify the title of this question. I write some ps1 scripts in VS Code that i need to provide to other users: I would like to find a way to keep all the functions in a separated file, reference it in the final script to be able to test it in VS Code and, once I’m ready to send this file to the user, copy all the functions that I used in the script from the file where they are defined. I know that I could write a Powershell Module, but this will imply and I will need to distribute it somehow and it will not be easy. Thank you in advance