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
NuGet.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
.tfignore
\packages