在将文件检入 SourceSafe 之前,如何查看 VS2008 中的差异?
我们有一个旧的经典 ASP 应用程序,我们一直使用 Visual Studio 6 来维护它。 这工作得很好,但我们已经准备好走出石器时代了,我想看看是否可以使用 Visual Studio 2008 (SP1) 来维护该应用程序。
过去,多个开发人员可以开发该应用程序,并且该应用程序处于源代码控制之下。 我们在 Web 服务器上安装了 FrontPage Server Extensions (FSE),并且客户端上的 Visual Interdev、Web 服务器上的 FSE 和 SourceSafe 数据库之间存在某种三向集成,该数据库允许我们通过 Interdev 签入和签出文件。 文件被签出到 Web 服务器,而不是客户端。 当通过 Interdev 重新签入文件时,我们可以按“Diff”按钮在签入之前查看文件的更改。
现在我已经安装了 Visual Studio 2008 (SP1),并且我正在尝试获得相同的功能。 我使用文件/打开网站/远程站点来启动该项目。 这工作正常,我可以签入和签出文件。 但是,查看差异的选项被禁用。 此外,当我在签入对话框窗口中输入评论时,该评论会被忽略。 换句话说,如果您使用 SourceSafe 独立客户端查看文件的历史记录,文件会正确签入,但没有注释。
在VS2008中,当我签出一个文件后,当我右键单击它时,“比较”和“查看历史记录”选项被禁用。 另外,如果我单击“签入”选项,“签入”对话框中的“比较版本”按钮将被禁用。 启用“比较”选项有什么技巧吗?
We have an old Classic ASP application that we have been using Visual Studio 6 to maintain. This has worked fine, but we're ready to step out of the stone age and I'd like to see if I can use Visual Studio 2008 (SP1) to maintain the application.
In the past, multiple developers could work on the application and it was under source control. We had FrontPage Server Extensions (FSE) installed on the web server and there was some sort of three-way integration between Visual Interdev on the client, FSE on the web server, and the SourceSafe database that let us check files in and out through Interdev. Files were checked out to the web server, not to the client. And when checking a file back in through Interdev, we could press a "Diff" button to review the changes to the file before checking it in.
Now I have installed Visual Studio 2008 (SP1) and I'm trying to get the same functionality. I used File/Open Web Site/Remote Site to bring the project up. This works fine and I am able to check files in and out. However, the option to view the differences is disabled. Also, when I enter a comment on the Check-In dialog window, the comment gets ignored. In other words, if you use the SourceSafe standalone client to look at the history of the file, the file gets checked in properly, but there is no comment.
In VS2008 after I check out a file, when I right-click on it, the "Compare" and "View History" options are disabled. Also, if I click on the Check-In option, the Compare Versions button in the Check-in dialog is disabled. Is there any trick to enabling the Compare option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保您的解决方案正确绑定到源代码管理(文件 -> 源代码管理)。 另请检查选项对话框中的源代码管理设置,确保选择了正确的提供程序。
如果您创建一个新项目 (.NET) 并将其添加到源代码管理中,这些功能可以工作吗?
Make sure your solution is bound to source control correctly (File -> Source Control). Also check the Source control settings in the options dialog, making sure the correct provider is selected.
If you create a new project (.NET) and add it to source control, do the functions work?
好问题(关于添加一个新项目来看看它是如何工作的)。 我创建了一个新的 ASP.NET 网站,但 Visual Studio 告诉我它无法将该网站添加到源代码管理中,因为您需要通过 Web 服务器上的 FrontPage 服务器扩展来执行此操作。 我在 Web 服务器上运行 IIS 管理器,并将网站添加到 SourceSafe。 然后,当我下次在 VS2008 中打开该项目时,它显示在源代码控制下。 但是,“查看历史记录”和“比较”选项仍然被禁用。
所以,我猜这个问题与我的旧经典 ASP 网站无关。 也许这只是您对运行 FrontPage Server Extensions 2002 的远程 Web 服务器使用 Visual Studio 2008 时存在的限制。是否有更新版本的 FPSE? 另外,我在远程服务器上的 IIS 下没有启用 ASP.NET 3.5 有什么关系吗? 目前它仅启用了 ASP.NET 2.0。
Good question (about adding a new project to see how that works). I created a new ASP.NET web site but Visual Studio told me that it couldn't add the web site to source control because you need to do this through FrontPage Server Extensions on the web server. I ran the IIS Manager on the web server and added the web site to SourceSafe. Then the next time I opened the project in VS2008, it showed up under source control. However, the View History and Compare options were still disabled.
So, I guess this problem has nothing to do with my old classic ASP site. Perhaps it is just a limitation that exists when you use Visual Studio 2008 against a remote web server running FrontPage Server Extensions 2002. Is there a newer version of FPSE? Also, does it matter that I do not have ASP.NET 3.5 enabled under IIS on the remote server? Right now it only has ASP.NET 2.0 enabled.
通常我不再使用 IIS 进行开发。 使用 VS2005 和 VS2008,您可以创建基于文件的网站(或 Web 应用程序),这些网站与 VS 内置的 Web 服务器一起运行。 这样您就不必再愚弄 IIS、首页扩展或 IIS 带来的权限问题。 对于经典的 asp 来说,这总是一个麻烦。
vs 网站体验和 IIS 之间很少存在“保真度”差异,因此当我部署到 IIS 时,我不必担心初始 IIS 设置后的差异。 VS 内的调试工作几乎完美无缺,但 IIS 上的调试可能会出现一些问题。
因此,源代码管理似乎也很容易工作,并且仅限于我的 dev 目录。
Typically I don't use IIS for development anymore. With VS2005 and VS2008 you can create file based websites (or web appllications) that run with the webserver built into VS. Then you don't have to fool with IIS, front page extensions or the permissions issues that IIS imposes. With classic asp this was always a hassle of some kind.
It is very rare that there is a "fidelity" difference between the vs website experience and the IIS so that when I deploy to IIS I don't worry about differences after the intial IIS setup. The debugging within VS works pretty much flawlessly, debugging on IIS can present some issues.
So then the source control seems to work very easily as well and is confined to my dev directory.