visual source safe - how to remove bindings from solution w/o opening in visual studio

后端 未结 5 1418
暗喜
暗喜 2020-12-30 09:04

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: <

5条回答
  •  情深已故
    2020-12-30 09:11

    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.

提交回复
热议问题