Get TFS to ignore my packages folder

前端 未结 12 2595
抹茶落季
抹茶落季 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条回答
  •  孤城傲影
    2020-11-28 00:54

    You need to be using local workspaces for .tfignore to work. The .tfignore file must be in the folder that contains the files or folders you want to ignore.

    So if your solution structure looks like this:

    \Project
       \Packages
       \OtherStuff
       foo.cs
    

    You'd put your .tfignore file in \Project:

    \Project
       \Packages
       \OtherStuff
       foo.cs
       .tfignore
    

    The contents of the .tfignore in your case would be:

    \packages

    Here's some documentation for you: http://msdn.microsoft.com/library/vstudio/ms245454(v=vs.110).aspx#tfignore

提交回复
热议问题