Unable to Package PowerShell Script into executeable

Issue #90 resolved
David Socha created an issue

Are per title, I am unable to package.

I am running visual studio 2015 pro, PowerShell Tools for Visual Studio 2015 3.1.618, PowerShell Pro Tools for Visual Studio 2015 1.6.0.

Output from $PSVersionTable is as follows: 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

The output from the build is as follows:

Checking license OutputPath is D:\Code\TFS\Visions\Powershell Scripting\FederatedCoops\out Bundling D:\Code\TFS\Visions\Powershell Scripting\FederatedCoops\ProcessFederatedData.ps1 Packaging C:\Users\dfsocha\AppData\Local\Temp\ProcessFederatedData.ps1 Checking dotnet version. 2.2.105

Creating package project. Using .NET Framework version: net462

Welcome to .NET Core!

Learn more about .NET Core: https://aka.ms/dotnet-docs Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry

The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

ASP.NET Core

Successfully installed the ASP.NET Core HTTPS Development Certificate. To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms refer to the platform specific documentation. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054. Restoring packages for C:\Users\dfsocha\AppData\Local\Temp\b68a6ab86d804fb4872d656324dd98ba\ProcessFederatedData.csproj... Generating MSBuild file C:\Users\dfsocha\AppData\Local\Temp\b68a6ab86d804fb4872d656324dd98ba\obj\ProcessFederatedData.csproj.nuget.g.props. Generating MSBuild file C:\Users\dfsocha\AppData\Local\Temp\b68a6ab86d804fb4872d656324dd98ba\obj\ProcessFederatedData.csproj.nuget.g.targets. Restore completed in 187.71 ms for C:\Users\dfsocha\AppData\Local\Temp\b68a6ab86d804fb4872d656324dd98ba\ProcessFederatedData.csproj.

Packaging C:\Users\dfsocha\AppData\Local\Temp\ProcessFederatedData.ps1 -> D:\Code\TFS\Visions\Powershell Scripting\FederatedCoops\out\ProcessFederatedData.exe Failed to build.

The script I am attempting to package is attached to this ticket. I am sure that I am messing something up on my end, but I am not sure what.

Thanks,

David

Comments (4)

  1. David Socha reporter

    Adam,

    Thank you for the quick response. I have the 4.7.2 developer pack installed. Will that work, or does it have to be the 4.6.2?

    Thanks,

    David

  2. Log in to comment