Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't my .tfignore file ignore my packages folder

I am using Visual Studio 2013 Pro and Team Foundation Server 2013. I have a .tfignore file with the following lines:

\packages
\<project name>\Bin
!\<project name>\Bin\*.refresh

Line 1 is not working but lines 2 and 3 are. The project name above is a website inside a solution. There is nothing else in this solution. There are nuget packages installed which automatically pull down when you publish or build the website. When that happens this package folder is created in the solution. It's not added to the solution explorer, it's just in the same folder as the solution when you look at the filer in file explorer.

Please let me know if there is any other information you need.

like image 868
hondaman2003 Avatar asked Dec 05 '14 14:12

hondaman2003


2 Answers

You can control this in NuGet.config.

Make sure the key "disableSourceControlIntegration" exists and is set to "true":

<solution>
    <add key="disableSourceControlIntegration" value="true" />
</solution>

References: http://docs.nuget.org/docs/Reference/Package-Restore http://docs.nuget.org/docs/Reference/NuGet-Config-Settings

like image 94
Daniel Mann Avatar answered Oct 18 '22 16:10

Daniel Mann


If your packages are already in TFS, you should first "undo pending changes" on your local, delete them from TFS Source files and then, check in In Visual Studio. That will removed the packages from the server and will not ask to check them in again.

like image 34
Hernan Avatar answered Oct 18 '22 15:10

Hernan