如何更改 Team Foundation Server 2005 和 2008 中的工作区?
我在几个不同的工作区中有多个项目。 然而,我似乎永远不知道如何改变我当前的工作空间。 结果是我在我的计算机上签出的文件显示为已被其他人签出并且无法访问。
I have multiple projects in a couple of different workspaces. However, it seems like I can never figure out how to change my current workspace. The result is that files that I have checked out on my machine are shown to be checked out by somebody else and are not accessible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我不完全理解你的问题。
您是说您在一台计算机上签出的文件在另一台计算机上似乎无法访问吗? 我想说这完全是设计使然,因为现在您有一个在一台计算机上进行了本地修改的文件,该文件在您的其他计算机上可能可用也可能不可用。
当您说由其他人检查时,这到底是什么意思? 你如何验证这一点,你在看什么?
或者你还有别的意思吗? 在这种情况下,请详细说明。
I don't entirely understand your question.
Are you saying that files you check out on one machine seems to be unaccessible on another of your machines? I'd say that would be entirely by design, as now you have a file that has local modifications done on one machine, which may or may not be available on your other machines.
When you say checked out by somebody else, what does that mean exactly? How are you verifying this, what are you looking at?
Or do you mean something else? In that case, please elaborate.
单击:
文件 -> 源代码控制 -> 高级-> Workspace
,然后您可以编辑或删除现有的映射位置Click on:
File -> Source Control -> Advanced -> Workspace
and then you can edit or remove the existing mapped locations首先,您应该激活工作区窗口。
First, you should active you workspace window.
在 Visual Studio 2013 中
如果您只是后悔为版本控制下的项目选择了哪个本地文件夹。 执行如下操作:
在源代码管理资源管理器的文件夹窗格中
选择您对本地文件夹目标/映射不满意的项目。
右键点击。 --> 进阶--> 删除映射。
将打开一个窗口:按浏览按钮并为项目选择另一个本地文件夹,然后单击“更改”。
In Visual Studio 2013
If you just regret which local folder you choose for a project under version control. Do like follows:
In the Source Control Explorer in the Folders pane
Select the project which local folder destination/mapping you are not pleased with.
Right click. --> Advanced --> Remove mapping.
A window opens: Press the browse button and choose another local folder for the project and then click "Change".
您想更改工作站上文件的位置吗? 如果是这样,我是这样做的:
Are you wanting to change the location of the files on the workstation? If so, here's how I do it:
我假设你的意思是“工作空间”,而不是“工作站”,因为否则你的问题对我来说不太有意义。
在 Visual Studio 中,转到源代码管理资源管理器(查看 -> 其他 Windows -> 源代码管理资源管理器)。 在源代码管理资源管理器窗口的顶部,您应该有一个带有几个按钮的工具栏。 在该工具栏上的某个位置(对我来说它位于右侧)应该有一个工作区下拉菜单。 只需从该下拉列表中选择您要使用的工作区即可。
I'm going to assume you mean "workspace", not "workstation", as your question doesn't quite make sense to me otherwise.
In Visual Studio, go to the Source Control Explorer (View->Other Windows->Source Control Explorer). At the top of the source control explorer window you should have a toolbar with a few buttons. Somewhere on that toolbar (for me it's at the right) there should be a Workspace dropdown. Just select the workspace you want to use from that dropdown.