Guidance needed on quoting /p:Platform="Any CPU" so AI‑generated msbuild calls always succeed
Hello Codex team,
I’m seeing intermittent failures when the AI agent generates our msbuild invocation:
_cmd /C msbuild.exe CoreVision.Commerce.sln /p:Configuration=Debug /p:Platform="Any CPU"_
Although msbuild.exe is correctly on my PATH, in most runs the /p:Platform="Any CPU" switch is split into two tokens or mis‑escaped (e.g. /p:Platform=\"Any and CPU\"), causing the build to fail.
I’ve updated AGENTS.md to explicitly require:
- Keep the entire
/p:Platform="Any CPU"in one JSON string element - Escape the inner quotes as
\"Any CPU\"
Additionally, per our build conventions we cannot use "dotnet msbuild"; we must call "msbuild.exe" directly.
Could you please advise exactly what phrasing or examples you’d like us to add to AGENTS.md so that the model consistently emits a perfectly quoted, one‑shot invocation on the first try? Any additional snippets or bullet points you recommend would be greatly appreciated. Maybe I need to specify an json sample of how to encode the call.
Thanks for your help!
Best regards,
Jörg