visual-studio 如何从解决方案中完全删除 TFS 绑定?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/697195/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:19:31  来源:igfitidea点击:

How can I totally remove TFS bindings from a solution?

visual-studiotfs

提问by Matt Roberts

We have a large solution with many projects. Some of the projects were outsourced, and the vendor used TFS. When they commited into our SVN repo, some of the bindings are still hanging around.

我们有一个包含许多项目的大型解决方案。一些项目是外包的,供应商使用了 TFS。当他们提交到我们的 SVN 存储库时,一些绑定仍然存在。

When I open the sln, VS2008 says "The source control provider associated with the solution cannot be found, do you want to remove them". I hit yes, save and exit, and then next time it does it all again :)

当我打开 sln 时,VS2008 提示“找不到与该解决方案关联的源代码管理提供程序,是否要删除它们”。我点击是,保存并退出,然后下次再做一遍:)

So - anyone know how I cam get rid of any TFS bindings from the sln once and for all? Do I need to manually search the csproj files for any "scc" references and remove?

所以 - 有谁知道我如何一劳永逸地摆脱 sln 中的任何 TFS 绑定?我是否需要手动搜索 csproj 文件中的任何“scc”引用并删除?

Thanks!

谢谢!

采纳答案by Cosmin Onea

Some PDA deployment projects(.vddproj) had some bindings hanging around. Just removed them manually :)

一些 PDA 部署项目 (.vddproj) 有一些绑定。只是手动删除它们:)

回答by Brian

The way to remove the bindings is to search the csproj files and remove it. There is a similar question on this topic already: See: How to remove TFS source control bindings for a solution from the command line

删除绑定的方法是搜索 csproj 文件并将其删除。关于这个主题已经有一个类似的问题:请参阅:如何从命令行删除解决方案的 TFS 源代码控制绑定

回答by SGarratt

Here's a PowerShell scriptto remove the source control binding info. It was ported from some C# and only tested on VS 2010 solutions. The original codewas written for VS 2005 and 2008 so you could probably add the relevant stuff back in.

这是一个用于删除源代码控制绑定信息的 PowerShell 脚本。它是从一些 C# 移植过来的,并且只在 VS 2010 解决方案上进行了测试。该原代码为2005和VS 2008是这么写的你很可能添加在相关的东西回来。

回答by Stefan

Here you can find a tool(including source code) to remove both SCC footprint from the solution and project files and the .vssscc and .vspscc files. In addition, it removes the output and other configurable directories.

在这里您可以找到一个工具(包括源代码),用于从解决方案和项目文件以及 .vssscc 和 .vspscc 文件中删除 SCC 占用空间。此外,它还删除了输出和其他可配置目录。

Hth

Stefan

斯蒂芬