如何解决阻止删除工作区的错误TF204017? [英] How do I resolve error TF204017 that is preventing deletion of a workspace?

查看:188
本文介绍了如何解决阻止删除工作区的错误TF204017?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前无法在本地Windows 10计算机上删除TFVC工作区.这是我创建的私有工作区.该计算机未加入域,我是该计算机的管理员.我收到以下错误:

I am currently unable to delete a TFVC workspace on my local Windows 10 machine. It's a private workspace that I created. The machine is not domain joined and I am an administrator on the machine. I'm getting the following error:

D:\Projects\Active\SPE-DEV>tf workspace /delete MYWORKSPACE
A deleted workspace cannot be recovered.
Workspace 'MYWORKSPACE' on server 'https://ourcompany.visualstudio.com/defaultcollection' has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No) y
TF204017: The operation cannot be completed because the user (Greg Enslow) does not have one or more required permission
s (Administer) for workspace MYWORKSPACE;Greg Enslow.

如果我尝试从Visual Studio UI中删除它,则会收到相同的消息.我可以手动删除工作区中的所有文件和文件夹,但是TFS会使用隐藏的$ tf文件夹重新创建一个根文件夹.

I get the same message if I try to delete it from within the Visual Studio UI. I can manually delete all the files and folders in the workspace but TFS recreates a the root folder with a hidden $tf folder.

今天早上,我卸载了Visual Studio 2015 Enterprise(仅具有试用许可证)并安装了Visual Studio 2015 Professional(我的公司具有此许可证).我确定这是一个因素,但是我的VS Team Services权限根本没有更改.

This morning I uninstalled Visual Studio 2015 Enterprise (only had a trial license) and installed Visual Studio 2015 Professional (my company has a license for this). I'm sure this is a factor but my VS Team Services permissions haven't changed at all.

推荐答案

您可以先将MYWORKSPACE更改为公用工作区,然后再次运行"tf工作区/delete MYWORKSPACE"命令.

You can first change that MYWORKSPACE to be a public workspace, then run the "tf workspace /delete MYWORKSPACE" command again.

要将工作区更改为公共工作区,请转到管理工作区"对话框,选择工作区,然后单击高级".

To change the workspace to be a public workspace, please go to Manage Workspace dialog, select the workspace and click Advanced.

这篇关于如何解决阻止删除工作区的错误TF204017?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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