There appears to be a discrepancy between the solution's source control information about some project(s) and the information in the project file(s)

只愿长相守 提交于 2019-11-28 07:27:59

Using Visual Studio you can solve this problem by unbinding and binding the solution and/or projects. Try this:

  1. Open the problem solution in VS (did this in VS2013 just now)
  2. Undo all pending changes to all the projects in that solution and the solution itself
  3. Go to File -> Source Control -> Advanced -> Change Source Control
  4. Select the problem projects and click "Unbind"
  5. Click OK and close the window (THIS IS IMPORTANT - if you don't click OK VS doesn't update the solution properly)
  6. Go to File -> Source Control -> Advanced -> Change Source Control
  7. Select all the projects you unbound in #4 and click "Bind"
  8. Click OK and close the window
  9. Check In Your Changes
  10. Close the solution and open it back up and everything should be fine now

Experienced the same problem in VS2015.

I found this workaround worked for me:

Change < Scc* > tag values to "SAK" (Should already know) in the project files:

<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>

https://connect.microsoft.com/VisualStudio/feedback/details/616751/discrepancy-between-the-solutions-source-control-information-about-some-project-s-and-the-information-in-the-project-file-s

Workaround #3

There was 1 person on our team who was doing the conversion to TFS from VSS who didn't have any errors. He never checked in his solution so we never saw it until now. I looked through his solution file and there are differences. I found the following differences for each project in "GlobalSection(TeamFoundationVersionControl) = preSolution":

Our NETReports.sln in TFS (the file that gave the error above):

SccProjectUniqueName7 = EllinReports\\DiagnosticReports\\DiagnosticReports.rptproj
SccProjectName7 = EllinReports/DiagnosticReports
SccLocalPath7 = EllinReports\\DiagnosticReports

His NETReports.sln (the file that DOESN'T give the error above):

SccProjectUniqueName7 = Reports\\DiagnosticReports\\DiagnosticReports.rptproj
SccProjectTopLevelParentUniqueName7 = NETReports.sln
SccProjectName7 = Reports/DiagnosticReports
SccAuxPath7 = http://<server>:8081/tfs/dev
SccLocalPath7 = Reports\\DiagnosticReports
SccProvider7 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}

I guess it all makes sense now. We were all missing the SccAuxPathXXX, SccProviderXXX and SccProjectTopLevelParentUniqueNameXXX. Having them made the difference.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!