7

我在我的解决方案中添加了一个新的 nuget 包。

在“Team View -> Pending Changes -> Detected Changes”中有一些文件,但 /lib 文件夹被忽略。结果 CI 构建中断。

问题:在 TFS(或 Visual Studio?)中指定排除 /Lib 文件夹(或 /Lib 文件夹内的文件)的位置?

4

2 回答 2

11

Given you're using TFS2012 I assume you're using a local workspace. For local workspaces files are ignored using the .tfignore file. Check if you have that file present and if there is an exclusion for the /lib folder in it.

Also note that by default certain files are ignored, such as the .dll files that would be in the /lib folder of the nuget package. If a folder has no files to include it will not be shown in pending changes. You will have to add it manually via source control explorer.

Here's the reference for the .tfignore file if you want to see how it works.

于 2012-08-26T12:30:43.087 回答
1

您可以通过选择忽略检测到的更改中的某些内容来快速确定 .tfignore 文件的位置。这将导致 .tfignore 文件出现在您的“包含的更改”中,并带有新的忽略设置(如果它不存在,则会创建它)。从这里您可以双击文件以打开它进行编辑。

于 2013-01-20T23:04:14.943 回答