Skip to content

Commit

Permalink
Update VisualStudio.gitignore
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
MattKotsenas authored Aug 15, 2024
1 parent 8779ee7 commit 71eddf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VisualStudio.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ StyleCopReport.xml
*.pgc
*.pgd
*.rsp
# but not Directory.Build.rsp, as it configures directory-level build defaults
!Directory.Build.rsp
*.sbr
*.tlb
*.tli
Expand Down

0 comments on commit 71eddf9

Please sign in to comment.