.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory
.net, c#, git, gitignore, visual-studio
Solution
I fixed this by replacing `bin/Debug` with `Debug`.
This would also have the affect of ignoring the `obj/Debug` directory, however I want to ignore the entire contents of the `obj` directory, so I have also added `obj` to `.gitignore`.
Problem
I have a C# Visual Studio project in a git repository. I want to ignore the contents `bin/Debug` directory but not the contents of the `bin/Release`' directory. I've added `bin/Debug` to my `.gitignore` file, but it doesn't seem to work - it is including the entire contents of the `bin` directory. What would the correct entry be to do this?