本文介绍了TFS 2017 找不到新的工作项类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我刚刚使用 witadmin 工具添加了一个新的工作项类型:

I have just added a new work item type using the witadmin tool:

witadmin.exe importwitd /collection:"http://mytfsserver.com:8080/tfs/myprojcol" /p:"myproj" /f:"mywit.xml"

导入成功并显示消息:

The work item type import has completed.

然后我继续更新类别,在 RequirementCategory 中引用新的 WIT:

I then proceeded to update the categories, referring the new WIT in the RequirementCategory:

witadmin.exe importcategories /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /f:"categories.xml"

我收到错误响应:

TF237059: The import of the category definition failed. In the type definition,
category Requirement Category refers to a work item type that does not exist mywit.

我试图从服务器获取 WIT 列表:

I tried to get the list of WITs from the server:

witadmin.exe listwitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj"

但我最近添加的 WIT 不在列表中.

But my recently added WIT was not on the list.

我试图删除它:

witadmin.exe destroywitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /n:"mywit"

并得到它的定义:

witadmin.exe exportwitd /collection:"http://mytfsserver:8080/tfs/myprojcol" /p:"myproj" /f:"mywit.xml" /n:"mywit"

并且对两个请求都得到了相同的错误响应:

And got the same error response for both requests:

TF201077: The work item type mywit cannot be found. It may have been renamed or destroyed.

但是当我通过网络浏览器打开 TFS 时,我可以根据我刚刚添加的 WIT 创建一个新项目.

But when I opened TFS through web browser, I can create a new item based on the WIT that I have just added.

这是 TFS 错误吗?如何让 TFS 识别我刚刚添加的新 WIT?

Is this a TFS bug? How can I make TFS recognize the new WIT that I have just added?

推荐答案

这是一个缓存问题.

尝试运行:

witadmin.exe rebuildcache /collection:"http://mytfsserver:8080/tfs/myprojcol"

之后您应该会看到您最近添加的 WIT.

Afterwards you should see your recently added WIT.

这篇关于TFS 2017 找不到新的工作项类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 20:13