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

MSBuild.rsp resolved from project location #11472

Open
JanKrivanek opened this issue Feb 20, 2025 · 1 comment
Open

MSBuild.rsp resolved from project location #11472

JanKrivanek opened this issue Feb 20, 2025 · 1 comment

Comments

@JanKrivanek
Copy link
Member

Context

MSBuid.rsp is supposed to be read only from the engine executable location:

https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files?view=vs-2022#msbuildrsp

Though it's being read from the project location as well:

Some command line switches were read from the auto-response file "C:\src-other\securing-msbuild\Examples\02-TargetRequestedFromCLI\MSBuild.rsp". To disable this file, use the "-noAutoResponse" switch.
@jeffkl
Copy link
Contributor

jeffkl commented Feb 20, 2025

It looks like just a documentation error, MSBuild has been looking for an MSBuild.rsp in the project directory forever, this is the first commit of XMake.cs:

found = GatherAutoResponseFileSwitches(projectDirectory, switchesFromAutoResponseFile);

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

No branches or pull requests

2 participants