Hello everybody,
edit: First of all i am really sorry for wrong formatted code, actually i do not know how i can format it
i have a (maybe small) comprehension problem with the following:
I try to compile a powershell script with visual studio code. I also have a function in another .psm1 file, and i also tried to put this function inside another .ps1 file.
everytime i compile the script and run, i get the following error message:
the original module was expected as .ps1 file in the path… I thougt bundling insert the module file in the exe and is also compiled…
My code is really really simple, because it is just a test project to test the bundling:
#. (Join-Path -Path $PSScriptRoot "script2.ps1")
Import-Module ($PSScriptRoot + "\script2.ps1")
get-writer2
and here is my relevant part of package.psd content:
Bundle = @{
Enabled = $true
Modules = $true
# IgnoredModules = @()
Can anyone give me the right hint where my mistake is, please?
edit: used version of powershell pro tools vs code extension is: v5.21.1
Best regards
patrick