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

查看:62
本文介绍了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. 删除了 jessehouwing 回答中图片中引用的映射
  5. 以不同的名称创建新映射,因为即使删除了旧映射,仍然存在命名冲突(我不知道)
  6. 从头开始映射源代码管理和本地文件夹

推荐答案

您将不得不更改工作区映射.如果源代码管理资源管理器允许,您可以打开工作区下拉菜单(在工具栏中)并编辑当前映射.

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天全站免登陆