visual-studio-2010 - 未能成功启动或连接到子 MSBuild.exe 进程

标签 visual-studio-2010 msbuild visual-studio-2012

在 VS2012 中,我经常在构建时会收到以下错误:

Error   5   The build stopped unexpectedly because of an internal failure.
Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. Failed to successfully launch or connect to a child MSBuild.exe process. Verify that the MSBuild.exe "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" launches successfully, and that it is loading the same microsoft.build.dll that the launching process loaded. If the location seems incorrect, try specifying the correct location in the BuildParameters object, or with the MSBUILD_EXE_PATH environment variable.
   at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNode(Int32 nodeId, INodePacketFactory factory, NodeConfiguration configuration)
   at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
   at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
   at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable`1 responses)
   at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
   at Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild, BuildRequestBlocker blocker)

在任务管理器中我看到至少有 10-20 个 MSBuild.exe 和 Conhost.exe。我无法终止这些,甚至关闭 VS 也不能解决问题。目前唯一的解决方法是注销并重新登录。

有没有人也经历过这个,也许有一个解决方案?

提前致谢。

最佳答案

请参阅 Failed to successfully launch or connect to a child MSBuild.exe process. Verify that the MSBuild.exe,其中说要重新启动 Visual Studio 以解决问题。

那当然对我有用。

关于visual-studio-2010 - 未能成功启动或连接到子 MSBuild.exe 进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14787507/

相关文章:

msbuild - Visual Studio Online 测试运行程序无法加载 SpecFlow dll

c# - 来自 NET 4.5 应用程序的 Windows 8 动态磁贴

.net - 为什么在 Visual Studio 中构建失败,因为它无法从引用的程序集中解析命名空间?

visual-studio - Visual Studio Express for Phone 7 系列会破坏 Visual Studio 2010 吗?

c++ - Visual Studio 2013 "A task was cancelled"

msbuild - 使用MsBuild通过命令行进行发布单击时出现问题

visual-studio-2012 - 每次在 Visual Studio 中保存文件时如何运行 Rake 任务?

c++ - 使用涉及 wxFileName 的任何内容时内存泄漏

c# - Visual Studio 2010 自动附加到进程

visual-studio-2010 - 输出路径和 MSBuild