A tip About Visual Studio Nuget Ignore Packages Folder

2017/1/51 min read
bookmark this

Add files, folder to ignore nuget packages folder.

If you use NuGet and build solution visual studio will get dll and download to packages folder, you don't want to check-in packages folder files/folder to your source control. Following is a note for ignoring NuGet packages folder.At your visual studio solution, add

At your visual studio solution, add .tfignore file, .nuget folder, and NuGet.config file.

  • Create .nuget folder and add Nuget.config file to the .nuget folder
  • create .tfignore file


<?xml version="1.0" encoding="utf-8"?>
    <add key="disableSourceControlIntegration" value="true" />



Now, when you try to check-in, file/folder under packages folder won't show to your tfs pending changes.