TFS - dll 被锁定以供用户检出 [英] TFS - dll is locked for check-out by user

查看:31
本文介绍了TFS - dll 被锁定以供用户检出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS 源代码管理下的 2 个项目.

2 projects under TFS Source Control.

  • DependancyProject.sln

  • DependancyProject.sln

AppProject.sln

AppProject.sln

AppProject 引用 DependancyProject.

With AppProject referencing DependancyProject.

-

我遇到的问题是 AppProject 中的安装程序项目.它有 DependancyProject.dll 作为引用"(?),它试图将它包含在 GAC 中.

The issue I have is with an Installer project in the AppProject. It has DependancyProject.dll as a 'reference'(?) where it tries to include it in the GAC.

当我尝试构建此项目以创建 MSI 以安装应用程序时,出现错误

When I try to build this project, to create an MSI to install the App, I get the error

The item $/Assemblues/DependancyProject/bin/debug/DependancyProject.dll is locked for check-out by USER in workspace HIS-PC-NAME.

(有问题的PC没有死也没有使用)

(The PC in question is not dead and not used)

dll 没有(据我所知)被检入源代码管理.当我浏览它时,它引用的路径无论如何都不存在(没有 bin 文件夹).

The dll is not (as far as I can see) checked into Source Control. The path it references anyway does not exist when I browse through it (no bin folder).

几乎源代码管理中的每个项目都引用了 DependancyProject,我从来没有遇到过任何问题.它构建,所有其他项目构建.只是这个安装程序项目没有.

The DependancyProject is refernced by pretty much every project in Source Control, and i've never had any issues with it. It builds, all the other projects build. It's just this one Installer Project which doesn't.

而且我不明白为什么它无论如何都需要尝试修改它.它需要做的(我假设)就是复制它.

And I can't see why it would need to try and modify it anyway. All it needs to do (I'm assuming) is make a copy of it.

这里有什么想法吗?

推荐答案

某些文件在 TFS 中被配置为不可合并",这意味着当对它们进行更改时,它们将被锁定.默认列表包括各种二进制文件,包括 .dll 文件.请注意,此锁定适用于所有挂起的更改 - 包括添加.

Some files are configured as "non-mergeable" in TFS, which means that they'll be locked when changes are pended on them. The default list includes a variety of binary files, including .dll files. Note that this lock applies to all pending changes - including adds.

有问题的其他开发人员很可能不小心为他的 bin 目录挂起添加 - 并且该目录中的任何二进制文件(即大多数)也会由于位于该不可合并列表中而被锁定.

It's likely that the other developer in question accidentally pended adds for his bin directory - and any binary files in that directory (ie, most of them) would have been locked as well due to being in that unmergeable list.

当这些项目被锁定时,您将无法挂起其他更改(包括在不同工作区中添加).要打破此锁定,其他开发人员可以通过撤消挂起的更改来执行此操作,或者服务器管理员可以使用 Team Foundation Server Power Tools.

You will not be able to pend other changes (including an add in a different workspace) while these items are locked. To break this lock, the other developer can do this by undoing the pending changes, or a server administrator can do it using the Find in Source Control functionality in the Team Foundation Server Power Tools.

也就是说,我不知道为什么你的构建过程试图挂起对该文件的添加.

That said, I don't know why your build process is trying to pend an add on that file.

这篇关于TFS - dll 被锁定以供用户检出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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