-
Notifications
You must be signed in to change notification settings - Fork 1
POSH Pro Tools: Merge-Script fails to build #31
Description
Hi,
I'm trying to package script in to an EXE. I'm using Merge-Script, but it is saying "failed to build." I have now tried this on two different Windows 2016 servers. One had Visual Studio 2017 on it. Both had the .NET Framework SDK 4.7.2 and the .NET Core 2.1 SDK installed. When I try to even merge a simple "hello world" script, it fails to build. Below is the output. What am I doing wrong?
Thanks,
Jim
PS C:\temp> Merge-Script -Script .\test.ps1 -OutputPath .\ -Package -debug
VERBOSE: Checking license
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): a
VERBOSE: OutputPath is C:\temp
VERBOSE: Packaging C:\temp\test.ps1
VERBOSE: Checking dotnet version.
VERBOSE: 2.1.302
VERBOSE: Creating package project.
VERBOSE: Using .NET Framework version: net462
VERBOSE: Restoring packages for
C:\Users\administrator.VILLAGE\AppData\Local\Temp\3eab3632b4654300b25a6a153944aed9\test.csproj...
Generating MSBuild file
C:\Users\administrator.VILLAGE\AppData\Local\Temp\3eab3632b4654300b25a6a153944aed9\obj\test.csproj.nuget.g.props.
Generating MSBuild file
C:\Users\administrator.VILLAGE\AppData\Local\Temp\3eab3632b4654300b25a6a153944aed9\obj\test.csproj.nuget.g.targets.
Restore completed in 122.44 ms for
C:\Users\administrator.VILLAGE\AppData\Local\Temp\3eab3632b4654300b25a6a153944aed9\test.csproj.
VERBOSE: Packaging C:\temp\test.ps1 -> C:\temp\test.exe
Confirm
Failed to build.
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): a
Merge-Script : Failed to build.
At line:1 char:1
- Merge-Script -Script .\test.ps1 -OutputPath .\ -Package -debug
-
+ CategoryInfo : InvalidOperation: (:) [Merge-Script], Exception + FullyQualifiedErrorId : PowerShellToolsPro.Cmdlets.MergeScriptCommand