fix_msbuild_rsp_errorlisted
Install: claude install-skill feralbureau/luminy
# fix_msbuild_rsp_error
**STOP. Running `dotnet build` again — with any flags, any arguments, any variation — will produce the identical MSB1001 error every single time. Do not run it. Do not try `--no-restore`, `--no-incremental`, `/p:`, `--verbosity:diag`, or any other flag. None of that changes anything. The error comes from a file outside the repo that injects `-` into every MSBuild invocation. Building again is wasted steps.**
The only path forward is Steps 1–3 below. Do them now.
The error means MSBuild found a `.rsp` (response file) somewhere on disk that contains just a bare `-` character. MSBuild reads these files automatically and appends their contents as extra switches — a bare `-` is not a valid switch, so the build crashes before any C# compilation. The stray file is **outside the repo** — searching the repo is pointless.
## Step 1: Locate the stray file
Use PowerShell to search the two standard locations. PowerShell is available via `run_command`:
```
powershell -NonInteractive -NoProfile -Command "Get-ChildItem -Path 'C:\Users\produ\.dotnet' -Filter '*.rsp' -Recurse -ErrorAction SilentlyContinue | Select-Object FullName"
```
Then check the SDK directory shown in the error output:
```
powershell -NonInteractive -NoProfile -Command "Get-ChildItem -Path 'C:\Program Files\dotnet\sdk\10.0.103' -Filter '*.rsp' -Recurse -ErrorAction SilentlyContinue | Select-Object FullName"
```
The most common location is `C:\Users\produ\.dotnet\MSBuild.rsp`.
## Step 2: Re