.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory

后端 未结 9 1054
一个人的身影
一个人的身影 2021-01-30 03:51

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\' dire

9条回答
  •  渐次进展
    2021-01-30 04:25

    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.

提交回复
热议问题