Ever need to share your Visual Studio solution or projects with someone?
You ZIP up a folder with your code and send it. If your project is under source control – one that is integrated with Visual Studio – you will likely hear from the recipient of your code. They will be complaining that the get weird
warnings from Visual Studio when they load the solution and projects.
What we need is a simple way to strip out all the source control bindings before we distribute the code.
That's exactly what the VSUnbindSourceControl is for
More details are at the CodePlex Project, but the short summary of usage is this.
- Copy your solution to a new directory (because the tool does modify files)
- Run this command:
- VSUnbindSourceControl.exe d:\myfolder
Once the tool is finished, all the source control bindings have been removed from an SLN files and from any *proj files.
- You use the tool at your own risk. By downloading or using the tool you agree to
its license (MIT License, FYI)
- I've only tried this against CSharp projects
- I've only tried this using Visual Studio 2010 and Visual Studio 2012
- The code is originally based on
this project by Jake Opines. The significant changes here include
- Much simplified I/O
- More specific cleanup of Project file XML
- Use of System.Xml.Linq instead of System.Xml
- Indented formatting of output project files
- Compiles using VS2012 and using .NET Framework 4.0