解决方案的有关某些项目的源代码控制信息与项目文件中的信息之间似乎存在差异 [英] 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)

查看:491
本文介绍了解决方案的有关某些项目的源代码控制信息与项目文件中的信息之间似乎存在差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010的Reporting Services解决方案中收到此错误消息[我们使用TFS进行源代码管理]:

I get this error message in a Reporting Services solution in Visual Studio 2010 [we're using TFS for source control]:

解决方案的来源之间似乎存在差异 控制有关某些项目的信息以及 项目文件.

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).

要解决此差异,必须检查 项目文件并进行更新.但是,如果签出失败,并且 解决方案已关闭但未保存,您将再次看到此警告 下次您打开解决方案时.

To resolve this discrepancy it will be necessary to check out the project file(s) and update them. If the check out fails, however, and the solution is closed without saving, you will see this warning again the next time you open the solution.

只有一些项目可以签出,但其他项目似乎还可以.所以这是我尝试过的:

Only some projects get checked out but others seem OK. So here is what I tried:

  1. 我试图比较项目之间可能有什么不同 有效但不起作用的文件,但没有什么引起我的注意.
  2. 我环顾四周,尝试了 建议的解决方案的数量,例如添加文件,签入然后删除 它并签入".没有运气.
  3. 我试图在项目文件中寻找"Scc"标签 但我看不到任何东西.我也没有在那些 工作正常.从我的解决方案来看,Scc条目看起来很合理.
  1. I tried to compare what might be different between the project files that work and don't work but nothing catches my eye.
  2. I looked around and tried a number of proposed solutions like "adding a file, checking in and then removing it and checking in". No luck.
  3. I tried to look for "Scc" tags in project files but I don't see any in there. I also don't see them in projects that work fine. Looking at my solution the Scc entries look reasonable.

帮助!!我想念什么?

推荐答案

使用Visual Studio,您可以通过取消绑定和绑定解决方案和/或项目来解决此问题.试试这个:

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

  1. 在VS中打开问题解决方案(刚才在VS2013中做到了)
  2. 撤消对该解决方案中所有项目以及该解决方案本身的所有待处理更改
  3. 转到文件->源代码控制->高级->更改源代码控制
  4. 选择有问题的项目,然后单击取消绑定"
  5. 单击确定"并关闭窗口(这很重要-如果您不单击确定",则VS无法正确更新解决方案)
  6. 转到文件->源代码控制->高级->更改源代码控制
  7. 选择您在#4中未绑定的所有项目,然后单击绑定"
  8. 单击确定"并关闭窗口
  9. 签入您的更改
  10. 关闭解决方案并打开备份,现在一切正常
  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

这篇关于解决方案的有关某些项目的源代码控制信息与项目文件中的信息之间似乎存在差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆