21

There's a git ignore pattern for all the Visual Studio projects on GitHub: gitignore/VisualStudio.gitignore. But I'm working specifically for SQL Server Business Intelligence solution in VS, and it seems that files like *.ispac are not ignored. Is there any more specific pattern available for these projects ?

  • SSIS
  • SSAS
  • SSRS
Mincong Huang
  • 5,284
  • 8
  • 39
  • 62

1 Answers1

20

I did some googling this morning on this and I found the following file. It looks pretty complete so I will give it a try. The *.ispac files are in the bin directory so they should be ignored anyway thanks to the rule for ignoring bin and obj.

https://www.gitignore.io/api/visualstudio

RobbZ
  • 1,410
  • 14
  • 19
  • I don't work with MSBI anymore. Did you apply this `.gitignore` file to a MSBI project, which one precisely? Did you try it with multiple Git repos to see check the correctness of such git ignore file? If yes, I can accept your answer. – Mincong Huang Mar 24 '17 at 10:24
  • Yes I am using the file in a SSIS project in VS 2015 (SQL Server 2016). Sorry just the one git repo but it is working correctly on multiple peoples repos. It is ignoring everything it should and working as expected. – RobbZ Mar 31 '17 at 12:59
  • 1
    For others, this is sourced from here : https://github.com/github/gitignore/ see the VisualStudio.gitignore file – Gabe Feb 15 '22 at 16:57