-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS 2022 cannot find path to MSBuild. #32
Comments
Resolved in commit 6fb5d83. "Add log to file for improved troubleshooting. Add support for env build path." See readme for an alternative way to set build paths using the environment variable "MsbuildPath". |
Not sure why this was closed or what has been fixed. The path is currently resolving to non-existent file |
Support for a better dotnet framework locator is needed. I am open to pull requests if anyone would like to extend the current detection code. Or if anyone knows of an npm package that locates dotnet build paths I would be happy to take a look and integrate if it works. For now, I have included two ways to override build paths. Please see readme for examples. |
Hi
Used version: 1.1.4
The logic for getting the path to MSBuild.exe is failing for the following reason:
msbuild.config('version', '17.0');
process.env['ProgramFiles']
gives 'C:\Program Files (x86)'Debugging is really hard because errors are being logged to
console
, which is not visible when invoked outside of the command line.Also after this error, the code just carries on without terminating causing the whole process to crash.
The text was updated successfully, but these errors were encountered: