There is no specific built-in support for passing projects files into a job with PowerShell Studio projects.
All files included in a project with a build setting of 'Include' are merged into a single PS1 file. Projects files with the shared file set to false written as a function when merged. This function is referred to as a Reference Function named like the following:
Invoke-FileName_ps1
You can pass this function as a parameter to your job. For that, the following might be helpful:
https://stackoverflow.com/questions/534 ... -parameter
You could also change the build setting to 'Content'. This will keep the file separate and not merge into the final PS1 file.
You may also find the following article helpful:
https://www.sapien.com/blog/2022/03/15/ ... roduction/
All files included in a project with a build setting of 'Include' are merged into a single PS1 file. Projects files with the shared file set to false written as a function when merged. This function is referred to as a Reference Function named like the following:
Invoke-FileName_ps1
You can pass this function as a parameter to your job. For that, the following might be helpful:
https://stackoverflow.com/questions/534 ... -parameter
You could also change the build setting to 'Content'. This will keep the file separate and not merge into the final PS1 file.
You may also find the following article helpful:
https://www.sapien.com/blog/2022/03/15/ ... roduction/
Statistics: Posted by brittneyr — Thu Jun 06, 2024 3:03 pm