tfs - vs2015不断添加project.lock.json到tfs

标签 tfs visual-studio-2015 .net-core tfignore

我的文件夹结构是:

-- 解决方案文件夹

--- .tfignore 文件

--- 每个项目的文件夹

但是 vs2015 继续将我的 project.lock.json 文件包含在源代码管理中。

在我的 .tfignore 文件中,我添加了:project.lock.json

我已尝试从源代码管理中撤消和删除这些文件。

如何阻止它包含project.lock.json?

最佳答案

只需将您的 VS 更新为 VS2015Update 3 .tfignore 应该确实可以正常工作。

或者您也可以使用临时快速修复来解决该问题: 将 $ 字符添加到 .bowerrc 中的 Bower_components 文件夹名称中。 TFS 不允许文件名中包含 $ 字符,因此无法将其添加到源代码管理中。

更多详细信息您可以引用GitHub上的这篇博客:Things in ".tfignore" still are shown in pending changes

关于tfs - vs2015不断添加project.lock.json到tfs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38855760/

相关文章:

azure - 为什么我的 Azure PowerShell 任务脚本可以使用 find-module 找到模块,但不能使用 import-module?

azure - 无法断开 Visual Studio Online 与 Windows Azure 云服务的连接

visual-studio-2015 - 将全局列表导入 Azure DevOps 托管 XML 流程模板

visual-studio-2010 - 如何在多个项目中引用 TFS 项

c# - Visual Studio 自动完成对 Unity 过于激进

visual-studio - 如何修复 Visual Studio 2015 中引用的 netstandard1.5 库项目的智能感知?

c# - Visual Studio 2015 中的 Azure Web 作业 - 部署无法正常工作,出现错误 "target "MSDeployPublish“项目中不存在”。

visual-studio-2015 - 无法安装适用于 Windows Server 2012 R2 的 DotNetCore VS2015 Tools Preview2

.net-core - Windows 和 Linux 上的 Net Core Worker 服务

c# - 在 _Layout 中注入(inject) IOptions<T> 的最佳方法是什么