简体   繁体   English

VS2013或VS2015显示“未指定的错误”

[英]VS2013 or VS2015 shows “unspecified error”

When I open my worked solution (after merge from other branch) VS2013 shows error message "unspecified error" and I cannot close the window (the error's dialog jumps each time when I close it). 当我打开我的工作解决方案(从其他分支合并后)VS2013显示错误消息“未指定的错误”,我无法关闭窗口(每次关闭时错误的对话框都会跳转)。 VS2012 opens the solution without error messages. VS2012打开解决方案,没有错误消息。 I suspect issue related to TFS configuration. 我怀疑与TFS配置有关的问题。 How can I found actual reason of the error? 我怎样才能找到错误的实际原因?

在此输入图像描述

I have searched a lot about its root cause but couldn't found any concrete information. 我已经搜索了很多关于它的根本原因但没有找到任何具体信息。

For me, 为了我,

  • Deleting the solution's .suo file. 删除解决方案的.suo文件。

resolve this problem. 解决这个问题。

I still don't understand the actual reason for this error, but I found a workaround. 我仍然不明白这个错误的实际原因,但我找到了一个解决方法。

According to "Change source control" window (VS) solution file (.sln) not connected to TFS 根据“更改源代码控制”窗口(VS)解决方案文件(.sln)未连接到TFS 在此输入图像描述

When I connected the solution to TFS in VS2012 (with the help of this link ), VS2013 opened the solution too without error message. 当我在VS2012中将解决方案连接到TFS时(借助此链接 ),VS2013也打开了解决方案,没有出现错误消息。

Found a solution at this address : 在此地址找到解决方案:

  1. Go at File -> Source Control -> Advanced -> Change Source Control 转到文件 - >源代码管理 - >高级 - >更改源代码管理
  2. Select your projects and unbind them 选择您的项目并取消绑定
  3. Rebind them. 重新绑定它们。

The problem should be solved. 问题应该解决。

我删除并重新创建了项目的新工作区,并为我工作

This always works for me 100% of the time. 这总是100%的时间适合我。

  1. Make sure your solution is closed. 确保您的解决方案已关闭。
  2. Open your solution. 打开你的解决方案
  3. As QUICKLY AS YOU CAN press Ctrl-Shift-B. 正如您可以按Ctrl-Shift-B一样

Your solution will build and the error message will disappear. 您的解决方案将构建,错误消息将消失。 When it reappears do the same thing again. 当它再次出现时再做同样的事情。

可能是解决方案文件中错误提到的TFS服务器的URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM