Skip to content

Commit 71eddf9

Browse files
authored
Update VisualStudio.gitignore
`Directory.Build.rsp` is a [documented file][1] that allows setting default arguments to command line builds. However, our .gitignore template ignores _all_ `*.rsp` files. which causes confusion: 1. Devs write an .rsp file and if they aren't being attentive forget to commit it 2. Adding it to git requires `git add --force`, which some devs mistake for a destructive or not-recommended action Thus, explicitly allow the `Directory.Build.rsp` file. [1]: https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-response-files?view=vs-2022#directorybuildrsp
1 parent 8779ee7 commit 71eddf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

VisualStudio.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ StyleCopReport.xml
8282
*.pgc
8383
*.pgd
8484
*.rsp
85+
# but not Directory.Build.rsp, as it configures directory-level build defaults
86+
!Directory.Build.rsp
8587
*.sbr
8688
*.tlb
8789
*.tli

0 commit comments

Comments
 (0)