TFS 2015 won't upload custom process template

邮差的信 提交于 2020-01-14 13:42:30

问题


We have a customized version of the Agile template that we've been using since TFS 2013. I have upgraded the template for 2015, which was no big deal. But when I go to upload it I get error "VS402479: You can't overwrite the Agile process template, because it's locked".

I have followed the instructions from MSDN to upload an updated process template. I have changed the name, description, and minor version strings as described in the documentation.

Here are the values from the metadata node in my ProcessTemplate.xml file:

<name>Custom Agile</name>
<description>Custom Template based on MSF Agile</description>
<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="14" minor="20" />

I have tried changing the major version and the minor versions to different, higher increments, and receive the same error.

If I change the type to a different Guid, the template loads just fine. The instructions imply that the Guid should be the same. I'm assuming this is so TFS knows the relationship between the built-in templates and custom templates they are based on.

I have a bunch of team projects to update the features on once the upgrade is complete and do not want to break the relationship to the built-in Agile process template if I can help it.


回答1:


You can no longer edit or delete the built in templates in TFS 2015 so you'll have to change the Guid if you want to upload your template.

Process Template changes to TFS 2015 RTM

In TFS 2015, the system templates are locked and cannot be changed. That change allowed us to overwrite the templates we ship, and with that we were able to rename the templates to Scrum, Agile and CMMI.

To create a custom process template based on a shipped template, simply export an existing template, give it a new name and version, and then reimport it by using the Process Template Manager. Existing projects are unaffected by this change, which means that they can continue to have their process customized by using witadmin.




回答2:


We have determined that this issue is not a bug. To upload a custom process template, not only the Process template name needed to change, but the version id also needed to change.

In the ProcessTemplate.xml file, find the following settings:

<version type="ADCC42AB-9882-485E-A3ED-7678F01F66BC" major="15" minor="10" />.

Change GUID string to another value. Then try to upload the custom template again.

You can generate a new Guid by using this C# code:

Guid g = Guid.NewGuid();

string s = g.ToString();


来源:https://stackoverflow.com/questions/31999557/tfs-2015-wont-upload-custom-process-template

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!