[英]How to disconnect project solution from TFS in Visual Studio 2017 or 2019?
I have a solution which was connected with TFS.我有一个与 TFS 相关的解决方案。 Whenever I try to install new library in the solution, I get an error:
每当我尝试在解决方案中安装新库时,都会出现错误:
Unauthorised (410)
未经授权 (410)
I have tried to delete all TFS-related files from solution, but I'm still getting that same error.我试图从解决方案中删除所有与 TFS 相关的文件,但我仍然遇到同样的错误。
Has anyone faced the same issue and resolved it somehow?有没有人遇到过同样的问题并以某种方式解决了它?
Verified solution经验证的解决方案
SOLUTION 1解决方案 1
For permanently and completely detach the solution from source control, Do the following steps:要永久且完全地将解决方案与源代码管理分离,请执行以下步骤:
File menu - Source Control - Advanced - Change Source Control...
File menu - Source Control - Advanced - Change Source Control...
Next time you open the solution you won't be prompted to connect to TFS.下次打开解决方案时,系统不会提示您连接到 TFS。
SOLUTION 2解决方案 2
To completely remove TFS source control binding follow these two steps:要完全删除 TFS 源代码控制绑定,请执行以下两个步骤:
*.vssscc
and *.vspscc
extensions.*.vssscc
和*.vspscc
文件。.sln
file in Notepad, and find & remove the GlobalSection(TeamFoundationVersionControl)
section..sln
文件,然后找到并删除GlobalSection(TeamFoundationVersionControl)
部分。From: Remove TFS Connection From Solution来自: 从解决方案中删除 TFS 连接
Afaik, errors starting with 4XX is caused by wrong credentials. Afaik,以 4XX 开头的错误是由错误的凭据引起的。 With that perspective, you can try disconnect from the server then reconnect via from Team->Disconnect from server
从这个角度来看,您可以尝试断开与服务器的连接,然后通过从 Team->Disconnect from server 重新连接
Also unbind the project and bind again;同样解绑项目,重新绑定; File->Source Control->Advanced->Change Source Control
文件->源代码管理->高级->更改源代码管理
Hope, it helps.希望能帮助到你。
Make sure you have deleted all related files locally.确保您已在本地删除所有相关文件。 To completely remove TFS source control binding follow these two steps:
要完全删除 TFS 源代码控制绑定,请执行以下两个步骤:
*.vssscc
and *.vspscc
extensions.*.vssscc
和*.vspscc
文件。.sln
file in Notepad, and find & remove the GlobalSection(TeamFoundationVersionControl)
section..sln
文件,然后找到并删除GlobalSection(TeamFoundationVersionControl)
部分。 GlobalSection(TeamFoundationVersionControl) = preSolution <code> SccNumberOfProjects = 2 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = <YourTFSURL> SccLocalPath0 = . SccProjectUniqueName1 = . SccLocalPath1 = . EndGlobalSection
More detail steps please take a look at this blog here: Reference Link .更多详细步骤请看这里的博客: 参考链接。
If you still get issue, also close VS, clear TFS and VS cache .如果您仍然遇到问题,请关闭 VS, 清除 TFS 和 VS 缓存。 Then open VS again, which may do the trick.
然后再次打开 VS,这可能会奏效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.