Skip to content
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

Only set debug path when MSBuildDebugEngine is set #6792

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

cdmihai
Copy link
Contributor

@cdmihai cdmihai commented Aug 28, 2021

Context

Fixes #6772, fixes AB#1386501

Changes Made

In #6639 I thought it would be a good idea to always expose exceptions by always setting msbuild's debug path, fallbacking to the current working directory. But apparently that's a breaking change :)
Also, some processes (like VS helpers) do not propagate the user's CWD and thus end up writing under Program Files which fails with permission exceptions.

So only set the debug path to the current working directory when MSBuildDebugEngine is set.

Testing

Unit test and manual tests

Notes

I couldn't actually repro #6772. What I did instead was to change the oop nodes to crash right after completing the handshake, and checked that MSBuild_Logs does not appear in the CWD, but instead the exception dumps appear under Temp.

@cdmihai cdmihai changed the title Fix ms build logs Only set debug path when MSBuildDebugEngine is set Aug 28, 2021
Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm willing to take this over #6787 since we'd like to keep the other parts and the fix forward is available. We'll discuss with the team today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSBuild_Logs directories created in source tree under normal operations
2 participants