git - vbcs.cache/edb.log 被 Visual Studio 2015 锁定

标签 git visual-studio azure version-control visual-studio-2015

当我尝试在线提交(并推送)代码到 Visual Studio 时,出现错误。

An error occurred. Detailed message: Could not open 'P:/.../Solution/.../.vs/.../vbcs.cache/edb.log': The process cannot access the file because it is being used by another process.

我已经验证文件已锁定,但仅在 Visual Studio 运行时才锁定,这意味着 Visual Studio 本身会锁定它。

我正在 Microsoft 提供的 Azure 虚拟机中使用 Visual Studio 2015 的预览版。

如何修复此错误?

重新启动虚拟机没有帮助。

最佳答案

对于 Git 用户,请编辑您的 .gitignore 文件,输入“/.vs”。这将忽略包含锁定文件的文件夹。

我还没有测试过它,但将其添加到另一个源代码控制系统(TFS、mercurial 等)的忽略文件中应该可以解决问题。

关于git - vbcs.cache/edb.log 被 Visual Studio 2015 锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28703561/

相关文章:

eclipse - 在 Eclipse 中禁用存储库的 Gerrit

azure - 如何从 Azure 应用程序注销?

javascript - 如何在Azure移动服务的javascript后端获取系统属性__CreatedAt、__Version?

c# - Visual Studio Code Review 差异窗口

PHP 访问私有(private) Azure 存储容器

git - 有没有办法在没有 gitignore 的情况下停止跟踪 VS Code 中的文件夹?

git - 使用 git 部署到 Azure 网站

ruby-on-rails - Codeship - 捆绑安装错误(您必须使用捆绑程序 2 或更高版本与此锁定文件)

c - 在 Visual Studio 中使用 PKCS#11

visual-studio - 如何修复 Visual C# 2010 Express 中的 "Invalid license data. Reinstall is required."错误?