{"id":137,"date":"2006-02-17T12:36:41","date_gmt":"2006-02-17T11:36:41","guid":{"rendered":"http:\/\/thedifficultbit.com\/?p=137"},"modified":"2016-01-19T20:11:59","modified_gmt":"2016-01-19T19:11:59","slug":"removing-visual-source-safe-files-from-a-visual-studio-solution","status":"publish","type":"post","link":"https:\/\/thedifficultbit.com\/?p=137","title":{"rendered":"Removing Visual Source Safe Files from a Visual Studio Solution"},"content":{"rendered":"<p>This is a DOS command file to remove the Visual Source Safe files from a solution if you have the debatable honour of using it but wish to retrieve a clean copy of your solution. You will also need to open the solution file itself in a text editor and manually delete the &#8220;GlobalSection(SourceCodeControl)&#8221; section.<\/p>\n<p>Note that you should ensure your code is fully backed up before trying this. The file may need changes to support other project types.<\/p>\n<p><code><br \/>\n@ECHO OFF<br \/>\nECHO Filter out the Scc data in each project file to a new .novss file<br \/>\nFOR \/R %%f IN (*.csproj *.vdproj *.dbp) DO FIND \/V \"Scc\" &lt; %%f &gt; %%f.novss<br \/>\nECHO Delete project files<br \/>\nDEL \/S \/Q \/F *.csproj<br \/>\nDEL \/S \/Q \/F *.vdproj<br \/>\nDEL \/S \/Q \/F *.dbp<br \/>\nECHO Rename .novss project files to remove extension<br \/>\nFOR \/R %%f IN (*.novss) DO REN %%f %%~nf<br \/>\nECHO Make project files read-only again<br \/>\nATTRIB +R *.csproj \/S<br \/>\nECHO Delete directory source control files<br \/>\nDEL \/S \/Q \/F *.scc<br \/>\nECHO Delete project source control files<br \/>\nDEL \/S \/Q \/F *.vspscc<br \/>\nECHO Delete solution source control files<br \/>\nDEL \/S \/Q \/F *.vssscc<br \/>\nECHO Now delete \"GlobalSection(SourceCodeControl)\" from solution file(s)<br \/>\n<\/code><\/p>\n<p>Using: Visual Studio 2005; Visual Source Safe 6.0;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a DOS command file to remove the Visual Source Safe files from a solution if you have the debatable honour of using it but wish to retrieve a clean copy of your solution. You will also need to open the solution file itself in a text editor and manually delete the &#8220;GlobalSection(SourceCodeControl)&#8221; section. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,6],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-visual-source-safe","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=137"}],"version-history":[{"count":6,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}