几个目录重命名后出现 TFS 签入问题文件移动
现在,当我尝试签入整个解决方案时,我从 TFS 收到以下错误。
TF203057:无法签入重命名 更改文件夹 $/XXX 因为有 是该文件夹中的文件或文件夹 等待重命名或删除更改。 您必须签入重命名并 一起删除更改。没有文件 已签入。
当然,我会一起签到所有内容。我现在甚至无法签入一个不相关的文件,因为它仍然会触发我无法找到具有此类 TF 错误的页面。 怎样才能让 TFS 签入?
我尝试检查整个项目,但没有帮助。现在全部都由我结帐了..
I get following error from TFS now when I try to checkin my entire solution.
TF203057: Cannot check in the rename
change for folder $/XXX because there
are files or folders in this folder
with pending rename or delete changes.
You must check in the rename and
delete changes together. No files
checked in.
Of course I am checking in everything together. I cannot checkin even a single unrelated file now cause it still fires this I am unable to find a page with such TF error.
What can be done to get TFS to checkin ?
I tried to checkout whole project, but it didnt help. Now its whole on checkout by me ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
我在 VS2012 中收到了类似的消息。我使用团队资源管理器而不是解决方案资源管理器收到错误。
我们在项目中使用文件夹来表示命名空间,并且对象移动命名空间,从而移动文件夹,从而生成错误。
我的解决方法是:
爱德华·汤姆森的评论为我指明了正确的方向,非常感谢!
I got a similar message in VS2012. I got the error using Team Explorer, not Solution Explorer.
We use folders in our projects to represent namespaces, and an object moved namespaces, and thus moved folders, generating the error.
My fix was to:
Edward Thomson's comment pointed me in the right direction, much thanks!
遇到了同样的问题。
这对我有用。
非常成功!
Ran into the same issue.
This is what worked for me.
Great success!
已确认,这是 Visual Studio 2010 TFS 中未修复的错误。
要修复此问题,请通过“团队资源管理器”菜单而不是解决方案资源管理器进行签入,并且不会出现不正确的显示错误。
Confirmed, this an unfixed bug inside Visual Studio 2010 TFS.
To fix it check in via the 'Team Explorer' Menu as opposed to the Solution Explorer and the incorrect display error will not appear.
嗯,实际上从解决方案视图签入时它不起作用。当我进入团队资源管理器并从源代码面板签入时,它工作得很好。我将保留此错误,因为这似乎是第一次提到该错误。
Hmm actually it wasn't working when checked in from solution view. When I went to team explorer and checked in from source code panel there it worked fine. Ill leave this cause it appears it will be the first time that error is mentioned.
我刚刚遇到了类似的问题,并通过检查“源代码管理资源管理器”而不是“解决方案资源管理器”中的更改来解决它。
我的场景:在 VS2013 中,我将文件夹和文件从一个签入项目拖放到同一解决方案中的另一个项目后,尝试从“解决方案资源管理器”中签入更改。对于数百个文件,我收到了与原始海报相同的错误。我打开“源代码管理资源管理器”并从那里签入。我收到了一条有关冲突的不同警告消息,我忽略了该消息并能够签入。
I just ran into a similar issue and got it resolved by checking the changes in from within 'Source Control Explorer' instead of 'Solution Explorer'.
My scenario: With VS2013, I tried to check-in changes from within 'Solution Explorer' after I had dragged and dropped folders and files from one checked-in project to another in the same solution. I received the same error as the original poster for hundreds of files. I opened 'Source Control Explorer' and checked in from there. I received a different warning message about conflicts which I ignored and was able to check-in.
将源代码移动到 TFS 中的不同目录后,我遇到了这个问题。我无法签入新移动目录中的待处理文件。以下方法对我有用:
排除所有具有挂起更改的文件。
仅从源代码管理中签入重命名的文件夹。
获取最新的。
包括所有待处理的更改。
已签入待处理的更改。
这对我来说非常有效。
I have encountered this issue after moving source code to different directory in TFS. I was not able to check-in the pending files in the newly moved directory. The below approach worked for me:
Exclude all the files that has pending changes.
Checked in only renamed folder from the Source Control.
Take Latest.
Include all pending changes.
Checked in pending changes.
This worked perfectly for me.
当您尝试修改在先前编辑过程中已被锁定的文件时,预计会看到此警告消息。最好的方法是在重新尝试签入之前获取分支的最新信息并在本地解决任何未决的冲突。
Expect to see this warning message when you are trying to modify files that have already been locked as part of a previous edit. Best way around is to get the latest on the branch and resolve any pending conflicts locally before reattempting to check in.
我尝试重命名文件夹,这导致了上述错误。我发现的唯一解决方案是保留旧文件夹名称并创建一个新文件夹,然后复制其内容。我检查了它,然后删除了旧文件夹并检查了它。显然,仅仅进行重命名对于 TFS 来说太复杂了,无法解析。
I attempted to rename a folder, this caused the error mentioned above. The only resolution I found was to keep the old folder name and create a new folder then copy its content. I checked that in then deleted the old folder and checked that in. Apparently just doing a rename is too complicated for TFS to resolve.
我在使用 VS2013 时从源代码管理资源管理器面板中收到此错误。 我通过在单独的 VS2013 实例中关闭 VS 调试器解决了此问题。
我经常运行多个 VS2013 实例。
I got this error when using VS2013, from Source Control Explorer panel. I resolved this issue by turning off VS debugger in a separate VS2013 instance.
I often run with multiple instances of VS2013 running.
这很奇怪,所以我想为路人提供一个简短的答案,并为感兴趣的人提供一个长的答案。
简短回答:尝试将 待处理更改 中的“查看选项”更改为“显示全部”,看看您的出现重命名更改。
长答案:这个问题最近一直困扰着我,我发现问题出在团队资源管理器(待更改)面板中的视图选项上。如果我选择“显示解决方案更改”,则重命名(或在我的情况下移动文件夹,但出现相同的错误)不会显示在包含的更改部分中(而对子文件的更改则显示,因此出现错误)。如果我将视图打开更改为“显示全部”,那么我可以看到重命名更改并能够签入。所以对我来说,这是由 TFS VS 集成中的错误引起的。 12 年前,MSFT 已确认这是一个错误(如果您相信的话)msdn 上。
我希望这有帮助。
This is weird so I want to give a short answer for passers by and a long answer for those who are interested.
Short Answer: Try changing the View Options in Pending Changes to 'Show All' and see if your rename change appears.
Long Answer: This issue has been bugging me recently and I found that the issue was with the view options in the team explorer (pending changes) panel. If I selected 'Show Solution Changes' then the rename (or folder move in my case but same error) did not show in the included changes section (while the changes to the child files did, hence the error). If I changed the view opens to 'Show All' then I could see the rename change and was able to check in. So for me, this was caused by a bug in the TFS VS integration. This was confirmed as a bug by an MSFT 12 years ago (if you can believe it) here on msdn.
I hope this helps.