*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: Powershell Studio 2022, 5.8.207
Operating system: Windows 10 Enterprise 10.0.19044
PowerShell version(s): 5.1.19041.1682
*** Please add details and screenshots as needed below. ***
I am trying to use SapienCommandLine.exe to create a CI system for my PowerShell projects that are packaged using PowerShell Studio.
On my own system, I have this working perfectly fine. When I run the command I get this output and the project compiles:
Code: Select all
PS [path]> & "C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\sapiencommandline.exe" /buildexe "./[proj name].psproj"
>> Starting...
>> Writing '[proj name].Package.ps1' ...
>> Package './[proj name].psproj'
>> SAPIEN Package and Deploy Tool 4.5 (c) 2005 - 2022 SAPIEN Technologies, Inc.
etc etc etc, just the standard output from the compiler
Code: Select all
PS [path]>& "C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\sapiencommandline.exe" /buildexe "./[proj name].psproj"
>> Starting...
>> Error: Unable to determine build settings.
>> Error: Unable to build package. Check build settings for packaging.
I have tried invoking psbuild.exe directly with
Code: Select all
PS [path]> & "C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\psbuild.exe" /package "./[proj name].psproj.psbuild"
SAPIEN Package and Deploy Tool 4.5 (c) 2005 - 2022 SAPIEN Technologies, Inc.
Error: Invalid buffer
File version incremented to 1.0.5.0
Product version incremented to 1.0.5.0
------ Build started: Sealing Manager, Configuration: x64 ------
Packaging with SAPIEN PowerShell V5 Host (Command line) x64
Adding ./[proj name].psproj
Writing scripts to bin\x64\[proj name].exe
Embedding elevated manifest...
Package completed
Code: Select all
ERROR: < : The term ' <' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
ERROR: spelling of the name, or if a path was included, verify that the path is correct and try again.
ERROR: At line:3 char:1
ERROR: + < P r o j e c t S y n c h r o n i z e d = " F a l s e " S y n c ...
ERROR: + ~~
ERROR: + CategoryInfo : ObjectNotFound: ( <:String) [], CommandNotFoundException
ERROR: + FullyQualifiedErrorId : CommandNotFoundException
ERROR:
Preparing modules for first use.
Preparing modules for first use.