Get TFS to ignore my packages folder

前端 未结 12 2599
抹茶落季
抹茶落季 2020-11-28 00:22

I\'m trying to get TFS (2013) to ignore my packages folder. I passionately don\'t want it source controlled as I\'m using NuGet and it\'s great!

I\'ve t

12条回答
  •  Happy的楠姐
    2020-11-28 00:40

    An alternative solution to the above is the following.

    • Add the packages folder to TFS (without any files or sub-folders)
    • Right Click the Packages Folder
    • Left Click Advanced
    • Click Cloak

    It is worth noting that this solution would need to be applied per TFS workspace. It has worked far more reliably for me rather than using the .tfignore file.

    You can read more about this approach in the blog article Prevent TFS from adding installed NuGet packages to source control.

提交回复
热议问题