Visual Studio源代码管理资源管理器访问被拒绝 [英] Visual Studio Source Control Explorer access denied

查看:220
本文介绍了Visual Studio源代码管理资源管理器访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在从事一个项目,一直在等待将其发布到Azure.在执行此操作之前,我的计算机上的本地用户帐户已更改.现在,当我尝试将项目解决方案添加到解决方案控制资源管理器时,我得到访问路径[旧用户名]/我的文档/项目被拒绝".我将项目从旧的用户帐户复制到了我正在使用的新帐户中.我从这个位置打开,但它似乎仍然引用旧路径.如何更改此设置和/或需要更改哪些设置?

Recently I have been working on a project and have been waiting to publish it to Azure. Before I was able to do this my local user account on my machine was changed. Now when I try to add the project solution to the solution control explorer I get "access to path [old username]/my documents/projects is denied." I have the project copied from the old user account onto the new one I am using. I opened from this location, but it still seems to reference the old path. How do I change this and/or what settings do I need to change?

我已经将该项目上载到该项目的源代码管理浏览器中,其余的团队可以查看它.是否可以从此处重新加载项目并在新的本地帐户上创建新的工作空间映射?如果可以,我该怎么做?

I have uploaded the project into the source control explorer for the project, and the rest of the team can view it. It is possible to re-load the project from here and create a new work space mapping on the new local account? If so how can I do this?

我通过做以下事情设法使它动起来,感谢jessehouwing向正确方向的推动.

I managed to get it moved by doing the following, thanks jessehouwing for the push in the right direction.

  1. 关闭Visual Studio
  2. 进入旧帐户,将项目直接复制到C盘
  3. 转到新帐户,从那里打开项目
  4. jesshouwing答案中图片中引用的已删除映射
  5. 使用不同的名称创建新的映射,因为即使旧的映射已删除,仍然存在命名冲突(我不知道)
  6. 从头开始映射源代码管理和本地文件夹

推荐答案

您将不得不更改工作区映射.如果Source Control Explorer允许,则可以打开工作区"下拉菜单(在工具栏中)并编辑当前映射.

You will have to change your workspace mapping. If the Source Control Explorer allows you, you can open the Workspace dropdown (in the toolbar) and edit the current mapping.

如果由于访问被拒绝错误而导致源代码管理资源管理器不允许您访问,则还可以使用命令行实用程序tf.exe删除它们.

If the Source Control Explorer doesn't allow you due to Access Denied errors, you can also use the commandline utility tf.exe to remove them.

  tf workspaces /remove

然后通过用户界面或使用

And then create a new one through the UI or also from the commandline using

  tf workspace /new 
  tf workfold /map

我在这里重用一张旧照片,第4步应该是修复对话框底部工作空间文件夹列表中的路径:).

I'm re-using an old picture here, step 4 should be to fix the paths in the Workspace folders list on the bottom of the dialog :).

这篇关于Visual Studio源代码管理资源管理器访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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