为什么不变的文件自动在TFS签出? [英] Why are unchanged files automatically checked out in TFS?

查看:921
本文介绍了为什么不变的文件自动在TFS签出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET项目,每当我编辑的.aspx (或的.ascx )的文件,TFS自动检查出所有的相应的 .aspx.cs aspx.designer.cs

In an ASP.NET project, whenever I edit an .aspx (or .ascx) file, TFS automatically checks out all the corresponding .aspx.cs and aspx.designer.cs.

据我了解,更改服务器端代码的的.aspx 会影响服务器端文件为好,但只要我实际上并不更改的东西,应该不是的.cs 拭目以待与结帐?

I understand that changes to server-side tags on the .aspx can affect the server-side files as well, but as long as I don't actually change anything in them, shouldn't the .css wait with the checkout?

环境:VS2013,TFS2010

Environment: VS2013, TFS2010.

请注意:唯一真正的负面影响在这里是检查之前,我需要去在每个的.cs 文件,并确保我没有做任何意外更改

Note: The only real negative affect here is that before checking in, I need to go over each .cs file and make sure I haven't made any accidental changes.

推荐答案

TFS将永远不会签入保持不变的任何文件。但是,如果你要确保你没有意外更改文件,可以使用撤消不变的特点。根据您的是否已经安装了电动工具您的Visual Studio版本,有可能是挂起的更改窗口上的这个按钮。如果你正在使用TFS 2012或更高版本,你也可以使用本地工作区功能,这实际上将验证文件确实改变。

TFS will never check in any file that is unchanged. But if you want to make sure you didn't accidentally change a file, you can use the "undo unchanged" feature. Depending on your visual studio version an whether you've installed the power tools, there might be a button for this on the Pending Changes window. If you were using TFS 2012 or later, you could have used the Local Workspace feature, which will actually verify that the file has really changed.

的Visual Studio 2010有它添加到待处理的延伸更改窗口

同样存在扩展为Visual Studio 2013 以及< A HREF =htt​​p://visualstudiogallery.msdn.microsoft.com/dc925252-2e11-46df-9cd0-af4b8097ca4f相对=nofollow> 2012 ,但是,由于在路上团队资源管理工作的变化,它被添加到源代码管理资源管理器:

The same extension exists for Visual Studio 2013 and 2012, but there, due to changes in the way Team Explorer works, it is added to the Source Control Explorer:

如果您有 Team Foundation Server的电动工具,适用2013 VS 安装,您可以使用 tfpt.exe UU 命令撤消未更改的文件。

If you have the Team foundation Server Power Tools for VS 2013 installed, you can use the tfpt.exe uu command to undo your unchanged files.

如果你想,可以添加这工具菜单作为一种解决方法

这篇关于为什么不变的文件自动在TFS签出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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