在什么情况下,Visual Studio 2012 Difference Viewer 将允许编辑源文件 [英] Under what conditions will the Visual Studio 2012 Difference Viewer allowing editing a source file

查看:25
本文介绍了在什么情况下,Visual Studio 2012 Difference Viewer 将允许编辑源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定使用内置于 Visual Studio 2012 Premium 的差异查看器,而不是继续使用 Winmerge 作为我的首选工具,特别是考虑到它使用提供智能感知和 resharper 集成的编辑窗口.

Rather than continuing with Winmerge as my tool of choice, I've decided to commit to using the Difference Viewer built into Visual Studio 2012 Premium especially given it uses the edit window providing intellisense and resharper integration.

但是,我注意到在一个解决方案中,我将本地文件与最新文件进行比较,并且允许我编辑源文件.但是,在同一 TFS 2010 服务器上存在的另一个解决方案中,但存在不同的项目并被检出到单独的工作区,我不允许编辑本地文件.

However, I've noticed that in one solution I compare a local file with latest and I'm allowed to edit the source file. However, in another solution which exists on the same TFS 2010 server but a different project and is checked out to a separate workspace, I'm not allowed to edit the local file.

根据 Visual Studio 2012 帮助(4. Diff 窗口出现.您可以继续在此窗口中对文件进行更改.")如果文件是本地文件,我应该能够编辑该文件.我还需要成为 Contributors TFS 组的成员(我实际上也是 Project Administrators 组的成员.)

According to the Visual Studio 2012 Help ("4. The Diff window appears. You can continue to make changes to the file in this window.") I should be able to edit the file if it is local. I will also need to be a member of the Contributors TFS group (I'm actually a member of the Project Administrators group too.)

我也尝试从命令行运行比较,例如tf difference filename.cs",并比较了两个本地文件,但它们仍然是只读的.

I've tried running the compare from the command-line too something like "tf difference filename.cs" and compared two local files but they're all still read-only.

有人可以确认我需要满足什么条件才能在差异查看器中编辑本地文件吗?

Can someone confirm what conditions I need to meet in order for the local file to be editable in the difference viewer?

更新:我不确定我是怎么错过这个的,但看起来它是 .aspx 文件,在我的任何解决方案中都无法编辑!

UPDATE: I'm not sure how I missed this but it would appear that it's .aspx files that can't be edited in any of my solutions!

推荐答案

如果您单击合并"按钮而不是比较文件",您会看到一个稍微不同的差异窗口,可让您编辑本地文件.另请参阅有关 aspx 文件的答案中的编辑.

If you click the Merge button instead of Compare Files, you get a slightly different diff window that lets you edit the local file. Also see the edit in the answer about aspx files.

这篇关于在什么情况下,Visual Studio 2012 Difference Viewer 将允许编辑源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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