{"id":59,"date":"2014-11-17T22:58:48","date_gmt":"2014-11-17T22:58:48","guid":{"rendered":"http:\/\/chasberndt.com\/?p=59"},"modified":"2014-11-22T03:29:02","modified_gmt":"2014-11-22T03:29:02","slug":"removing-tfs-source-control-bindings-from-solution-files","status":"publish","type":"post","link":"https:\/\/chasberndt.com\/?p=59","title":{"rendered":"Removing TFS Source Control Bindings from Solution Files"},"content":{"rendered":"<p>Today, I started looking into removing the TFS source control bindings from all of our solution files. At the time, I didn&#8217;t know how many solution files we had, but I knew it was more than I wanted to go through manually. I did some research online and even found some tools, but they didn&#8217;t work correctly for me so I wrote a Python script that would do this for me.<\/p>\n<p>Basically, you edit a single variable, <code>providedPath<\/code> and run the script. It goes through a directory (and all of it&#8217;s subdirectories) looking for solution files. It then goes through each file, finding where they start and end (if they are present), re-writes the file without that section, and replaces the original file. I&#8217;ve ran it today, build solutions to make sure I didn&#8217;t break anything, and checked that code into Stash. I&#8217;ve also build the whole app successfully.<\/p>\n<p><del>The script is located on GitHub <a href=\"https:\/\/github.com\/chuckstaburnt\/KillAllBindings\">here<\/a>.<\/del><\/p>\n<p>One thing this script does\u00a0<strong>not<\/strong> do that I might add is deleting .vccss files. I didn&#8217;t bother with it since I&#8217;ve added that file extension to the .gitignore files.<\/p>\n<p>This might grow to do additional things as we test migrating from TFS to Git. My guess is that this will not be the last time I copy all of our source over. Oh, and we have nearly 200 solution files, half of which contain source control binding\u00a0sections. I&#8217;m glad I scripted that.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>EDIT:\u00a0<\/strong>I&#8217;ve taken the script off of GitHub while I overhaul it and determine if I can actually share it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I started looking into removing the TFS source control bindings from all of our solution files. At the time, I didn&#8217;t know how many solution files we had, but I knew it was more than I wanted to go through manually. I did some research online and even found some tools, but they didn&#8217;t <a class=\"read-more\" href=\"https:\/\/chasberndt.com\/?p=59\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,11,10],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-git","category-stash","category-tfs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":3,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/chasberndt.com\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chasberndt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}