package.psd1
file will be created in the current workspace's root. So for example, if you have the folder C:\src\scripts
open in Visual Studio Code, the file C:\src\scripts\package.psd1
will be created.package.psd1
file. You can learn more about the syntax of the file by clicking here.package.psd1
file is generated at the root of the current workspace folder. Here's an example of a file structure with a root package.psd1
file. Clicking Package Script as Exe on an script will use this package.psd1
file.package.psd1
file in a particular folder. When packaging scripts in that folder, the scoped package.psd1
file will be used. test\test.ps1
file, the test\package.psd1
will be used to package the script. When packaging the test2\test2.ps1
file, the test\package.psd1
file will be used. The root package.psd1
will used when packaging test3\test3.ps1
because that folder does not have a scoped package config file.