简体   繁体   English

跨VS 2012和VS 2010的TFS 2012工作区

[英]TFS 2012 Workspace across VS 2012 and VS 2010

I'm currently moving a solution which contains VS 2010 and VS 2008 projects to TFS 2012, and I have checked in the code through VS 2012 Source Control Explorer. 我目前正在将包含VS 2010和VS 2008项目的解决方案移至TFS 2012,并且已经通过VS 2012 Source Control Explorer检入了代码。

But when I open the project in VS 2010 or VS 2008 it seems like the files are not mapped in source control. 但是,当我在VS 2010或VS 2008中打开项目时,似乎文件未映射到源代码管理中。

I know that we cannot map the same workspace for VS 2012 in VS 2010, please could anyone suggest any solutions? 我知道我们无法在VS 2010中为VS 2012映射相同的工作空间,请问有人可以提出任何解决方案吗?

I have already tried the following 我已经尝试了以下

  1. I converted the workspace type from local workspace to Server Workspace and I was able to map the same location in both VS 2010 and VS 2012, but when I open the project in VS 2010 it seems like it is not mapped to source control. 我将工作空间类型从本地工作空间转换为服务器工作空间,并且能够在VS 2010和VS 2012中映射相同的位置,但是当我在VS 2010中打开项目时,似乎没有映射到源代码管理。 ( TFS Workspaces across VS 2010 and 2012? ) VS 2010和2012中的TFS工作区吗?

  2. Having separate workspaces ie, C:\\TFS (for VS 2012) and C:\\TFS2010 (for VS 2010). 具有单独的工作区,即C:\\ TFS(对于VS 2012)和C:\\ TFS2010(对于VS 2010)。 This has not worked as VS 2010 is failing to load the projects. 由于VS 2010无法加载项目,因此无法使用。

Many thanks in advance :) 提前谢谢了 :)

Thanks all for your reply. 谢谢大家的答复。

I managed to resolve this issue by removing the old source control (Serena Dimensions) references from the project files (the workspace type is Server Workspace .) 我设法通过从项目文件(工作空间类型为Server Workspace )中删除旧的源代码控制(Serena Dimensions)引用来解决此问题。

Many thanks all of you. 非常感谢大家。

Are you checking in the upgraded solution at same location or different location in TFS? 您是在TFS的同一位置还是在其他位置签入升级的解决方案?

You should be able to use the same workspace irrespective of different Visual Studio versions provided both solution paths are mapped in same workspace. 如果两个解决方案路径都映射在同一工作空间中,则无论使用哪种Visual Studio版本,您都应该能够使用同一工作空间。

Please read this blog . 请阅读此博客

Because local workspaces use a local data store that only VS 2012 and later know how to read and write, local workspaces are invisible to VS 2005, 2008, and 2010 clients which might be installed on the same machine as your VS 2012 instance. 由于本地工作空间使用仅VS 2012及更高版本知道如何读写的本地数据存储,因此VS 2005、2008和2010客户端看不到本地工作空间,这些客户端可能与VS 2012实例安装在同一台计算机上。 If you want to share your workspace between VS 2012 and VS 2010 on the same machine, then local workspaces aren't for you and you should convert your workspace back to a server workspace so that VS 2010 can see it. 如果要在同一台计算机上的VS 2012和VS 2010之间共享工作空间,则不适合使用本地工作空间,因此应将工作空间转换回服务器工作空间,以便VS 2010可以看到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM