Using EnvDTE.Solution - How to Remove Source Control Bindings

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

I know that I can open the file in notepad and delete the GlobalSection part, but I'm not sure that (or how) I can do this as part of the method below ...

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

I found MSDN less useful with this API.

+3
source share
1 answer

I don’t know how, but I saw how it was done with some magic of regular expressions

Cm:

Source here: Wintellect.Build.Tasks.zip

0
source

Source: https://habr.com/ru/post/1704973/


All Articles