简体   繁体   English

无法从VS 2013 Update 5在TFS 2015上创建项目

[英]Cant create project on TFS 2015 from VS 2013 Update 5

When I try to create a new project in TFS 2015 from VS 2013 Update 5, getting the error: 当我尝试从VS 2013 Update 5在TFS 2015创建新项目时, 收到错误:

TF400324: Team Foundation services are not available from the server. TF400324:服务器无法使用Team Foundation服务。

Technical inforamtion (for administrator): TF200038: You cannot create a team project with your version of Team Explorer 技术信息(对于管理员):TF200038:您无法使用您的Team Explorer版本创建团队项目

According to this article on MSDN , you have to install VS 2015 to create a team project in TFS 2015: 根据MSDN上的这篇文章 ,您必须安装VS 2015才能在TFS 2015中创建团队项目:

You must connect from a client that is at the same version level as TFS. 您必须从与TFS版本级别相同的客户端进行连接。 That is, you must connect to TFS 2015 from a version of Visual Studio 2015. 也就是说,您必须从Visual Studio 2015版本连接到TFS 2015。

If you don't have a license for your edition of VS for 2015, you can always install Community edition. 如果您没有2015版VS的许可证,则可以随时安装社区版。

This error occurs primarily due to corrupt Team Foundation Server cache. 发生此错误主要是由于Team Foundation Server缓存损坏。

There are several reasons why the cache can go corrupt 缓存可能会损坏有几个原因

*Abrupt closure of TFS services on your machine *Multiple versions of TFS (2010/2012/2013) configured on your machine *Upgrade in the version of TFS at server end, but pending upgrade on client machine *Corrupted installation of TFS client *在您的机器上突然关闭TFS服务*在您的机器上配置多个版本的TFS(2010/2012/2013)*在服务器端升级TFS版本,但在客户端计算机上等待升级* TFS客户端损坏安装

Solution – Clearing of cache 解决方案 - 清除缓存

  • Close all instances of Visual Studio 关闭Visual Studio的所有实例

  • Open Task Manager and check if any TFS Services are running. 打开任务管理器并检查是否有任何TFS服务正在运行。 Select each of them and click on End Process Tree 选择它们中的每一个,然后单击“结束进程树”

  • Browse to the folder below and delete all the contents and folders%LocalAppData%\\Microsoft\\Team Foundation\\4.0\\Cache 浏览到下面的文件夹并删除所有内容和文件夹%LocalAppData%\\ Microsoft \\ Team Foundation \\ 4.0 \\ Cache

  • %LocalAppData%\\Microsoft\\Team Foundation\\5.0\\Cache %LocalAppData%\\ Microsoft \\ Team Foundation \\ 5.0 \\ Cache

Restart Visual Studio and try triggering build 重新启动Visual Studio并尝试触发构建

If you are switching from one version of TFS to another, you may require repeating this solution again.If you are using older version of TFS, you may have to navigate to 如果要从一个版本的TFS切换到另一个版本,则可能需要再次重复此解决方案。如果您使用的是旧版本的TFS,则可能需要导航到

%LocalAppData%\Microsoft\Team Foundation\

and find out the version folder instead of navigating directly. 找出版本文件夹而不是直接导航。

Post clearing of cache, you will be prompted to rebind your solution to TFS. 清除缓存后,系统将提示您将解决方案重新绑定到TFS。

Don't worry this would not let go of your local un-checked-in changes. 不要担心这不会放弃您当地的未经登记的更改。

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

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