c# - 在 vscode 中使用 TFS 时如何排除文件夹?

标签 c# visual-studio-code tfvc

我正在 VS 代码中使用 Visual Studio Team Services 扩展进行 checkin 。https://marketplace.visualstudio.com/items?itemName=ms-vsts.team

我现在正在尝试检查 Angular 项目中的更改,但我对排除的 16000 个来自 node_modules 的文件感到恼火: enter image description here

如何从源代码管理中排除这些文件?在 Visual Studio 中我使用了 .tfignore 文件,vscode 怎么样?

最佳答案

我在使用 Visual Studio 代码和 TFVC 创建 dotnet core 2 cli react 项目时遇到了同样的问题。我在根目录中创建了一个 .tfignore 文件(与 .gitignore 相同的位置)。

然后我将.gitignore文件中的内容复制到.tfignore文件中,保存并完成...

关于c# - 在 vscode 中使用 TFS 时如何排除文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44358018/

相关文章:

C# "validate"绑定(bind)到表单的对象的最佳方法

c# - 如何使用 JavaScript 创建和保存文本文件

visual-studio-code - VS 代码 : keybinding to move cursor to next occurrence of word under cursor

tfs - 如何找到特定TFS项目子文件夹的所有标签?

tfs - TFS 默认集合根中的分支是否有问题?

c# - 在没有点网框架的情况下安装 C# 应用程序

c# - 无法找到正确的命名空间但已添加引用?

typescript - 阻止某些文件导入到 VS Code 中

git - 部署 ASP.Net MVC .Net Core 应用程序时出现错误 MSB4025

visual-studio-2012 - tf.exe 信息/版本 :T does not get latest