vs2015不断向tfs添加project.lock.json [英] vs2015 keeps adding project.lock.json to tfs

查看:93
本文介绍了vs2015不断向tfs添加project.lock.json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的文件夹结构是:

-解决方案文件夹

-。tfignore文件

--- .tfignore file

---每个项目的文件夹

--- folder for each project

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

But vs2015 keeps including my project.lock.json files in source control.

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

In my .tfignore file, I added: project.lock.json

我尝试了撤消和

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

How can I stop it from including project.lock.json?

推荐答案

按照 Patrick-MSFT答案中的链接 ,这对我有用:


如果更改在待更改中仍然仍然,请先创建一个备份副本,然后对他们。关闭VS,还原备份副本,然后它应该可以工作。

If the changes are "still" in pending changes, first create a backup copy, then make an Undo on them. Close VS, restore the backup copies and then it should work.

另一种解决方案可能可行,但是Visual Studio仍将其重新创建为我一删除它,就会立即将其重新添加到TF。因此,我无法检查该更改。可能在更改源代码管理浏览器之前关闭该解决方案,或者使用TFS Power Tools Shell扩展,可能与其他解决方案一起使用。

The other solution may work, but Visual Studio kept recreating the file as soon as I deleted it, which would immediately add it back to TFs. So I couldn't check in that change. Possibly closing the solution before making the change in the source control explorer, or using the TFS Power Tools shell extension, may work with the other solution.

这篇关于vs2015不断向tfs添加project.lock.json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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