Open
Description
Description
When running dotnet publish on my project it will generate the following output:
The input line is too long.
The syntax of the command is incorrect.
After sleuthing with diagnostics, it seems to be coming from an attempt to run a packaged version of findvcvarsall.bat
Task "Exec" (TaskId:389)
Task Parameter:StandardOutputImportance=Low (TaskId:389)
Task Parameter:Command="D:\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.4\build\findvcvarsall.bat" x64 (TaskId:389)
Task Parameter:ConsoleToMSBuild=True (TaskId:389)
Task Parameter:IgnoreExitCode=True (TaskId:389)
"D:\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.4\build\findvcvarsall.bat" x64 (TaskId:389)
The input line is too long. (TaskId:389)
The syntax of the command is incorrect. (TaskId:389)
The command ""D:\.nuget\packages\microsoft.dotnet.ilcompiler\9.0.4\build\findvcvarsall.bat" x64" exited with code 255. (TaskId:389)
Output Property: _FindVCVarsallOutput=The input line is too long.;The syntax of the command is incorrect. (TaskId:389)
Output Property: _VCVarsAllFound=255 (TaskId:389)
Done executing task "Exec". (TaskId:389)
Task "Error" skipped, due to false condition; ('$(_VCVarsAllFound)' == '1') was evaluated as ('255' == '1').
Reproduction Steps
syntax of command run:
dotnet publish -r win-x64 .\<myproj>.csproj
Expected behavior
It should complete without errors or warnings that are vague or unactionable.
Actual behavior
As described, it indicates something is wrong, but doesn't say what that something is, even though it "seems" to produce a working output. (This does NOT inspire one with much in the way of confidence in said output!)
Regression?
No response
Known Workarounds
No response
Configuration
.NET 9
Windows 10 Version 22H2 (OS Build 19045.5737) [All Updates applied]
AMD64
[Unknown if related to this config only, I have no other configs to try]
Other information
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status