-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The path resolves to the wrong installation and version when version is set to "current" and you're using 64 bit version of VS22
events.js:1740
throw er; // Unhandled 'error' event
^
Error: spawn **C:\WINDOWS\microsoft.net\Framework64\v15.0\msbuild.exe ENOENT**
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
This is caused by
frameworkDirectories = getFrameworkDirectories(msbuildDir);
this prioritizes x86 instances of msbuild (and doesn't even check if msbuildir contains msbuild.exe)
In my particular case, the directory does exist C:\Program Files (x86)\MSBuild\15.0\FileTracker (not sure where that got installed vs2019 doesnt exist on my computer)
I propose that BOTH the x86 and x64 paths are checked and which ever has a version that is greater is selected. Finally, if there are two version equal to one another give us an option to select x86 or x64.
Metadata
Metadata
Assignees
Labels
No labels