简体   繁体   English

TFS在构建解决方案或打开解决方案时要求签出?

[英]TFS asking for Check Out when the solution is build or solution is opened?

When Source Control settings in Tools -> options is changed for "Prompt when Check out".Then it ask for check out else it would automatically check out. 当“工具->选项”中的“源代码控制”设置更改为“检出时提示”时,然后要求检出,否则它将自动检出。

This check out should not happen when nothing is modified. 如果未进行任何修改,则不应进行此检出。

Let me know what might be the problem how to do settings to avoid this problem in TFS Source Control. 让我知道可能是什么问题,如何进行设置以避免TFS Source Control中的此问题。

I have experienced similar situation in case the CSPROJ has some invalid setting, for example the Guid of the project is the same as the Guid of another project in the same solution. 如果CSPROJ的设置无效,例如在同一个解决方案中项目的Guid与另一个项目的Guid相同,我也遇到过类似的情况。 Such things can happen when copying and modifying CSPROJs by hand. 手动复制和修改CSPROJ时可能会发生这种情况。

My suggestion: after opening Studio modifies the CSPROJ, check the change in the Pending Changes, and decide if they are correct/acceptable or not. 我的建议:在Studio打开后,修改CSPROJ,检查“挂起的更改”中的更改,并确定它们是否正确/可接受。 If yes, check it in, and problem solved. 如果是,请签入并解决问题。

Uncheck this: 取消选中此:

Tools->Options->Source Control->Environment
       Checked-in items
              Saving: Check out automatically

It should work. 它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM