Does anyone know of a good way to remove vss source control bindings for a visual studio 2005 and 2008 solution without opening it in visual studio?
I used to use: <
This is the .cmd file I use to remove all source control files:
:: *.scc
:: ===========================================================================
attrib /s -h -s "*.scc" :: Must get rid of system and hidden attributes
attrib /s -r "*.scc" :: at same time
del /s "*.scc"
:: *.vssscc
:: ===========================================================================
attrib /s -h -s "*.vssscc"
attrib /s -r "*.vssscc"
del /s "*.vssscc"
:: *.vspscc
:: ===========================================================================
attrib /s -h -s "*.vspscc"
attrib /s -r "*.vspscc"
del /s "*.vspscc"
:: *.vsscc
:: ===========================================================================
attrib /s -h -s "*.vsscc"
attrib /s -r "*.vsscc"
del /s "*.vsscc"
After which you can either open in Visual Studio and get prompted to remove source control bindings (which removes the lines mentioned by Seth Reno, ie.
SccProjectName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
SccAuxPath = "x"
SccLocalPath = "xxx"
SccProvider = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)
Or you could do some kind of regular expression removal, but I don't have code for that.