Modify all command-line builds in entire repo
I used to place msbuild.rsp response files alongside solution and project files to avoid repeating -nr:false -v:m -bl (no node reuse, minimal verbosity, binlogs). It was super annoying to have to have it all over the place. While browsing another repo, I just learned that since MSBuild 15.6+, you can now have a Directory.Build.rsp response file that affects every build in every descendent folder. This sounds like a great default one for me:
1
# See https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files
2
-nr:false
3
-m:1
4
-v:m
5
-clp:Summary;ForceNoAlign
Copied!
Note I also prefer much more the - syntax rather than / for switches.
Last modified 1mo ago
Copy link