Skip to content

Commit 9c6bd98

Browse files
authored
Ensure path writable for MSBuildDebugEngine (#7366)
If `MSBUILDDEBUGPATH` is invalid, it will now attempt to redirect to the current working directory. If writing to the current working directory fails, perhaps because it's in `C:\Program Files` or another protected directory, it redirects to `TEMP`. If the path is too long, it now fails with a nice error. Fixes #7241
1 parent 26ff91e commit 9c6bd98

31 files changed

+197
-7
lines changed

src/MSBuild/Resources/Strings.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,9 @@ Copyright (C) Microsoft Corporation. All rights reserved.
13231323
<data name="MSBVersion" UESanitized="true" Visibility="Public">
13241324
<value>MSBuild version = "{0}"</value>
13251325
</data>
1326+
<data name="MSBuildDebugPath" Visibility="Public">
1327+
<value>MSBuild logs and debug information will be at "{0}"</value>
1328+
</data>
13261329
<data name="SwitchErrorWithArguments" Visibility="Public">
13271330
<value>{0}
13281331
Full command line: '{1}'

src/MSBuild/Resources/xlf/Strings.cs.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.de.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.es.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.fr.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.it.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.ja.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.ko.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.pl.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MSBuild/Resources/xlf/Strings.pt-BR.xlf

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)