How can I totally remove TFS bindings from a solut

2020-07-09 09:07发布

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.

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 :)

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?

Thanks!

4条回答
孤傲高冷的网名
2楼-- · 2020-07-09 09:14

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

查看更多
贼婆χ
3楼-- · 2020-07-09 09:29

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

查看更多
太酷不给撩
4楼-- · 2020-07-09 09:36

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

查看更多
对你真心纯属浪费
5楼-- · 2020-07-09 09:37

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.

Hth

Stefan

查看更多
登录 后发表回答