Get TFS to ignore my packages folder

前端 未结 12 2612
抹茶落季
抹茶落季 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:44

    You can permanently set this once-off in your AppData\Roaming for all solutions (old & new)!

    In your %AppData%\NuGet\NuGet.Config file, add the following just before the XML tag...

    
      
    
    
      
    
    

    ...you can specify any path you want - the important thing is putting it OUTSIDE your TFS workspace!

    Now you never have to worry about that stuff again. Your solution folder will not contain any packages anymore; all solutions will default to using your custom packages location instead.

    NOTE - This works is on a per-user basis.

提交回复
热议问题