项目中不存在Microsoft.TestPlanCategory [英] Microsoft.TestPlanCategory does not exist in project

查看:117
本文介绍了项目中不存在Microsoft.TestPlanCategory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将TFS 2012升级到TFS 2015 2.1后,我在尝试连接到TFS项目时收到 Microsoft测试管理器中的错误:

After upgrading TFS 2012 to TFS 2015 2.1, I am receiving error in Microsoft Test Manager when trying to connect to TFS project:

VS402325:工作项类型类别Microsoft.TestPlanCategory在项目中不存在"MyTFSProjectName"

VS402325: Work item type category Microsoft.TestPlanCategory does not exist in project "MyTFSProjectName"

推荐答案

嗨Belcavitch,

Hi Belcavitch,

感谢您在此处发帖。

根据错误消息,类别中没有Microsoft.TestPlanCategory 。我建议你可以尝试通过以下步骤手动添加类别:

According to the error message, there is no Microsoft.TestPlanCategory in the Categories. I suggest that you could try to add the category manually by the following steps:

1. 在团队资源管理器中下载最新版本的流程模板

2.通过以下命令将测试计划工作项类型从流程模板导入团队项目:

2.Import the Test Plan work item types from the process template to the team project by the following command:

  witadmin importwitd / collection:CollectionURL / p:" ProjectName" /f:"DirectoryPath\WITDefinitionFile.xml"

 witadmin importwitd /collection:CollectionURL /p:"ProjectName" /f:"DirectoryPath\WITDefinitionFile.xml"

3.通过以下命令导出类别:

3.Export the Categories by the following command:

witadmin  exportcategories / collection:CollectionURL / p:ProjectName / f:" DirectoryPath \Categories

witadmin exportcategories /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\Categories

4.将测试计划添加到类别:

4.Add the test plan to Categories:

<CATEGORY name="Test Plan Category" refname="Microsoft.TestPlanCategory">
<DEFAULTWORKITEMTYPE name="Test Plan" />
</CATEGORY>

5.将类别导入团队项目。

5.Import the Categories back to the team project.

witadmin importcategories / collection:CollectionURL / p:ProjectName / f:" DirectoryPath \Categories

witadmin importcategories /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\Categories

有关详细信息,请参阅以下内容链接:

For more information, you could refer to the following link:

https://msdn.microsoft.com/en-us/library/dn789837.aspx

您需要执行
配置功能向导

And you need to do the Configure Features Wizard after the upgrade.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于项目中不存在Microsoft.TestPlanCategory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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