-
Notifications
You must be signed in to change notification settings - Fork 816
Description
Depending on where the repo is cloned, the build of Aspire.ProjectTemplates can fail due to hitting the limits of how long a command used to start a process can be (~32K chars, on Windows at least). This is due to the Aspire.ProjectTemplates.csproj project invoking the script at /tools/scripts/replace-text.cs and passing in the full file path of every source file in the templates as arguments for the --files arg, along with the replacements to perform via the --replacements arg.
We should update the script to support accepting a .rsp file for argument passing and the Aspire.ProjectTemplates.csproj logic to create a .rsp file and pass it in. Note System.CommandLine automatically supports accepting arguments via a .rsp file so we should probably move the script to use it.