使用同一Visual Studio 2005解决方案的不同版本/分支 [英] Working with different versions/branches of the same Visual Studio 2005 solution

查看:96
本文介绍了使用同一Visual Studio 2005解决方案的不同版本/分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是使用VS2005的一个可用性问题:我从版本控制中检出了同一Visual Studio 2005解决方案的不同分支.解决方案和项目文件也受版本控制.在开发工作站上,有时我会在不同版本或分支上分别打开多个Visual Studio实例.它们都以相同的名称显示在窗口标题和任务栏中,这使得切换到正确的名称变得困难.(对于启动页面中最近打开的项目列表也是如此,但是我很少使用它,无论如何.

This is kind of a usability question for using VS2005: I have different branches of the same Visual Studio 2005 solution checked out from version control. The solution and project files are also under version control. On my development workstation, I sometimes have multiple instances of Visual Studio opened on a different version or branch each. They all show up under the same name in the window title and the taskbar, which makes it hard to switch to the correct one etc. (The same goes for the list of recently opened projects in the startup page, but I rarely use that, anyway.)

我试图找到一种方法来仅更改显示的名称,而不会给源代码控制带来太多麻烦,但是Visual Studio 2005似乎从SLN文件本身的名称而不是从内部的某些属性获取解决方案名称.

I tried to find a way to only change the name displayed while not running into too much trouble with source control, but Visual Studio 2005 seems to take the solution name from the name of the SLN file itself, not from some attribute inside of it.

让Visual Studio在标题栏中显示解决方案文件的完整路径已经有帮助,但是我也没有找到实现此目的的方法.

It would already help to have Visual Studio show the full path to the solution file in the title bar, but I haven't found a way to do that, either.

您如何处理同一解决方案中的不同版本?

How do you handle different versions from the same solution?

推荐答案

为什么不在分支机构中重命名解决方案文件,例如MySolution-branchXY.sln?

Why don't you rename the solution file on your branches, e.g. MySolution-branchXY.sln?

更新:

我不确定我是否理解您的评论.

I'm not sure I understand your comment.

分支解决方案后,每个文件都有两个独立的版本:一个在主干(或源分支)上,一个在新分支上.这两个文件共享一个共同的历史记录,但是您可以在两个分支上自由地对其进行独立更改.因此,您可以在您的分支机构中重命名解决方案.

As soon as you have branched your solution, you have two independent versions of each file: one on the trunk (or source branch) and one on the new branch. The two files simply share a common history, but you are free to change them independently on both branches. So you can rename the solution in your branch.

这篇关于使用同一Visual Studio 2005解决方案的不同版本/分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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