为什么我的.tfignore文件不忽略我的packages文件夹 [英] Why doesn't my .tfignore file ignore my packages folder

查看:79
本文介绍了为什么我的.tfignore文件不忽略我的packages文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2013 Pro和Team Foundation Server2013.我有一个.tfignore文件,其中包含以下几行:

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

第1行不起作用,但第2和3行起作用.上面的项目名称是解决方案内部的网站.此解决方案没有其他内容.安装了nuget软件包,这些软件包会在您发布或构建网站时自动下拉.发生这种情况时,将在解决方案中创建此程序包文件夹.当您在文件资源管理器中查看文件管理器时,它并没有添加到解决方案资源管理器中,而是与解决方案位于同一文件夹中.

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.

推荐答案

您可以在 NuGet.config 中进行控制.

确保键"disableSourceControlIntegration"存在并且设置为"true":

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

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

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

这篇关于为什么我的.tfignore文件不忽略我的packages文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆