views:

471

answers:

1

How do I use the EnvDTE.Solution API to remove TFS source control bindings from the solution file?

I know I can open the file in notepad and delete the GlobalSection portion, but I'm not sure if (or how) I can do this within the method below...

 public void Export(Solution solution, TemplateInput model)
 {
    if(model.RemoveSourceControlBindings)
    {
       /* here */
    }
 }

I've found MSDN to be less than helpful with this API.

A: 

Don't know how, but I've seen it done with some regex magic

See:

Source here: Wintellect.Build.Tasks.zip

slf
These are using regex on the raw file, I'm using the COM object. I'd like to stay within the confines of the method above, if possible.
Ben Scheirman