vs2015不断向tfs添加project.lock.json

编程入门 行业动态 更新时间:2024-10-27 02:28:22
本文介绍了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

本文发布于:2023-11-15 03:03:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1590574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:tfs   project   json   lock

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!