我的文件夹结构是:
-解决方案文件夹
-。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
发布评论