Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Invoke-BatchFile throws "The input line is too long. The syntax of the command is incorrect." with latest VsDevCmd.bat #66
The batch file runs without error and loads VS stuff into session
I'm not sure what changed in VS Developer Command Prompt batch file, but it has made PSCX unhappy :( That being said, things like MSBuild and such do appear to be added to the path in-session, and it displays the banner, so it's not a blocking issue.
It appears the VS team has implemented their own PS module to do the things they were doing in the batch file. The same can be accomplished with the following commands:
NB: That hex value passed to -InstanceId is not familiar to me, I grabbed it from the the startup parameters of the "Developer PowerShell for VS 2019" shortcut. Also, YMMV if you installed VS into a different path or have a different edition.
Visual Studio 2019 Enterprise version 16.2.0 or 16.2.1
PSCX Version: 3.3.2