Setting PowerShellCore to $true in packager fails to build
Issue #102
resolved
Visual Studio Code Version: 1.32.3 (user setup)
PS C:\Users\Administrator\Desktop> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PowerShell Pro Tools: 4.2.3
When I add the PowerShellCore parameter to the packager config, it fails out with the error: "Merge-Script : Unable to find the specified file."
This occurs with both the -Config and -ConfigFile parameters.
This is the config I'm using:
@{
Root = 'c:\Users\Administrator\Desktop\Tail.ps1'
OutputPath = 'c:\Users\Administrator\Desktop\out'
Package = @{
Enabled = $true
Obfuscate = $false
HideConsoleWindow = $false
DotNetVersion = 'v4.6.2'
FileVersion = '1.0.0'
FileDescription = 'Simple tail command for Windows'
ProductName = 'Tail'
ProductVersion = ''
Copyright = ''
RequireElevation = $false
ApplicationIconPath = ''
PackageType = 'Console'
PowerShellCore = $true
}
Bundle = @{
Enabled = $true
Modules = $true
# IgnoredModules = @()
}
}
Comments (4)
-
-
Well, that's my bad. I had apparently downloaded the PS Core installer but never ran it.
I do think a more helpful message than "Unable to find the specified file" is needed though.
-
Totally agree. Will get that fixed.
-
- changed status to resolved
- Log in to comment
Do you have PS Core installed on the machine that is doing the packaging?
Also, have you tried to run the packaging from PS Core?