无法从 TFS 获取最新信息
Unable to get latest from TFS
我在 TFS 中有我的源代码。
问题是when i try to get the latest files from the TFS, I am made to wait for 5 minutes for connecting to server
搞定。然后它说超时了!然后我将不得不再次连接到 TFS。
仍然无法获取代码!
我有 tried mapping it to a different folder
但即使那样也失败了。
我正在使用 Visual Studio 2012 Express for web
。
我已经 tried clearing all the local data, cache
之类的了。我什至tried resetting the user data
。
另外 tried logging in with another account
检查天气是否是我的 Hotmail 帐户的问题(不是。因为即使使用另一个 ID 我也无法获取它)。
没有任何帮助!
问题已解决!
以下是我修复它的步骤。
由于清除所有文件可能会重置您在 visual studio 上的所有设置,这应该是最后一个可能的选择。
- Just did a repair on the VS 2012,
- cleared everything from
C:\Users\(Username)\AppData\Local\Microsoft\Team Foundation.0\Cache
- Clear everything from
C:\Users\(Username)\AppData\Local\Microsoft\VisualStudio
- Clear everything from
C:\Users\(Username)\AppData\Local\Microsoft\VSCommon
但是还有一个问题
我错误地将文件添加到不同的存储库。我已经从服务器(在线)中删除了它。但是 the deleted project file is still shown in my source explorer in VS
带有加号!我该如何删除它们?
如果有人有任何想法,请帮助!非常感谢..!
在 TFS 服务器中,您是否为您的帐户设置了所有权限(访问)。如果没有,请在 TFS 上为您的帐户添加管理访问权限。
您的项目文件似乎仍有一些源代码管理绑定。这样该文件就可以在源代码管理资源管理器中被检测为新添加的文件。您需要删除源代码管理绑定。
有一个工具可以从 msdn 的Visual Studio 解决方案和项目中删除源代码管理绑定:Remove Source Control Bindings from Visual Studio Solutions and Projects 详细步骤如下:
删除 .sln
文件旁边的 .suo
,然后在记事本中打开 .sln
文件并删除整个部分:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {xxxxx}
SccTeamFoundationServer = http://some-other-guys-tfs-server/
SccLocalPath0 = .
SccProjectUniqueName1 = xxDemo\xxDemo.csproj
SccProjectName1 = xxDemo
SccLocalPath1 = xxDemo
EndGlobalSection
在记事本中保存 .sln
,然后在 Visual Studio 中打开。
更多方式更多信息供大家参考:How can I completely remove TFS Bindings
第二题解答!
这是对待定变更的误解。
我已经从服务器上删除了该文件夹,但文件名仍然出现在 VS 的 TFS 源资源管理器中。
只是因为 VS 确实将其识别为要在 even-though 中检查的待定更改,它不是一个!
所以只是 undo pending changes
对我有用!
我在 TFS 中有我的源代码。
问题是when i try to get the latest files from the TFS, I am made to wait for 5 minutes for connecting to server
搞定。然后它说超时了!然后我将不得不再次连接到 TFS。
仍然无法获取代码!
我有 tried mapping it to a different folder
但即使那样也失败了。
我正在使用 Visual Studio 2012 Express for web
。
我已经 tried clearing all the local data, cache
之类的了。我什至tried resetting the user data
。
另外 tried logging in with another account
检查天气是否是我的 Hotmail 帐户的问题(不是。因为即使使用另一个 ID 我也无法获取它)。
没有任何帮助!
问题已解决!
以下是我修复它的步骤。 由于清除所有文件可能会重置您在 visual studio 上的所有设置,这应该是最后一个可能的选择。
- Just did a repair on the VS 2012,
- cleared everything from
C:\Users\(Username)\AppData\Local\Microsoft\Team Foundation.0\Cache
- Clear everything from
C:\Users\(Username)\AppData\Local\Microsoft\VisualStudio
- Clear everything from
C:\Users\(Username)\AppData\Local\Microsoft\VSCommon
但是还有一个问题
我错误地将文件添加到不同的存储库。我已经从服务器(在线)中删除了它。但是 the deleted project file is still shown in my source explorer in VS
带有加号!我该如何删除它们?
如果有人有任何想法,请帮助!非常感谢..!
在 TFS 服务器中,您是否为您的帐户设置了所有权限(访问)。如果没有,请在 TFS 上为您的帐户添加管理访问权限。
您的项目文件似乎仍有一些源代码管理绑定。这样该文件就可以在源代码管理资源管理器中被检测为新添加的文件。您需要删除源代码管理绑定。
有一个工具可以从 msdn 的Visual Studio 解决方案和项目中删除源代码管理绑定:Remove Source Control Bindings from Visual Studio Solutions and Projects 详细步骤如下:
删除 .sln
文件旁边的 .suo
,然后在记事本中打开 .sln
文件并删除整个部分:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {xxxxx}
SccTeamFoundationServer = http://some-other-guys-tfs-server/
SccLocalPath0 = .
SccProjectUniqueName1 = xxDemo\xxDemo.csproj
SccProjectName1 = xxDemo
SccLocalPath1 = xxDemo
EndGlobalSection
在记事本中保存 .sln
,然后在 Visual Studio 中打开。
更多方式更多信息供大家参考:How can I completely remove TFS Bindings
第二题解答!
这是对待定变更的误解。
我已经从服务器上删除了该文件夹,但文件名仍然出现在 VS 的 TFS 源资源管理器中。
只是因为 VS 确实将其识别为要在 even-though 中检查的待定更改,它不是一个!
所以只是 undo pending changes
对我有用!