What TFS folder should the solution file be bound to?

前端 未结 1 1820
醉酒成梦
醉酒成梦 2020-12-22 12:24

I\'m using Visual Studio 2013 Pro, update 4, and TFS for version control. I\'m not having a good time.

VS keeps insisting on checking out the solution file when I op

相关标签:
1条回答
  • 2020-12-22 13:08

    Whenever I find messed up bindings I always follow the same process:

    • Close VS
    • Open the SLN file in Notepad.
    • Remove the GlobalSection (sometimes more than 1) that contains all the SCC elements
    • Check the csproj file has the 4 <Scc**> elements with a value SAK. If not update all 4 to be SAK (see below).
    • Open the SLN file in VS.
    • Select the Solution at the top of Solution Explorer
    • File, Source Control, Advanced, Change Source Control
    • Find the Solution in the list and select it.
    • Click the "Bind" button.

    This usually sorts it for me when you re-open it, everything is OK.

    The <Scc**> elements should look like this:

    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
    
    0 讨论(0)
提交回复
热议问题