【发布时间】:2014-11-17 15:47:40
【问题描述】:
我在使用 Visual Studio 2012 构建解决方案时遇到问题,我收到错误子节点 2 过早退出。
我google了一下,找到了这个链接
error MSB4166: Child node exited prematurely. Shutting down
但我的系统中有足够的物理内存和虚拟内存。
这是诊断报告。
进程 2370776 中未处理的异常: ===================== 2014 年 9 月 23 日上午 9:22:35 Microsoft.Build.Shared.InternalErrorException:MSB0001:内部 MSBuild 错误:我们不能同时拥有程序集名称和 程序集文件/路径。在 Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(字符串 消息,异常 innerException,对象 [] 参数)在 Microsoft.Build.Shared.AssemblyLoadInfo.Create(字符串 assemblyName, 字符串汇编文件)在 Microsoft.Build.Shared.AssemblyLoadInfo.FactoryForTranslation(INodePacketTranslator 翻译)在 Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.Translate[T](T& 值,NodePacketValueFactory
1 factory) at Microsoft.Build.Logging.LoggerDescription.Microsoft.Build.BackEnd.INodePacketTranslatable.Translate(INodePacketTranslator translator) at Microsoft.Build.Logging.LoggerDescription.FactoryForTranslation(INodePacketTranslator translator) at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.TranslateArray[T](T[]& array, NodePacketValueFactory1 工厂)在 Microsoft.Build.BackEnd.NodeConfiguration.Translate(INodePacketTranslator 翻译)在 Microsoft.Build.BackEnd.NodeConfiguration.FactoryForDeserialization(INodePacketTranslator 翻译)在 Microsoft.Build.BackEnd.NodePacketFactory.PacketFactoryRecord.DeserializeAndRoutePacket(Int32 nodeId,INodePacketTranslator 翻译器)在 Microsoft.Build.BackEnd.NodePacketFactory.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator 翻译器)
在 Microsoft.Build.Execution.OutOfProcNode.Microsoft.Build.BackEnd.INodePacketFactory.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator 翻译器)在 Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.PacketPumpProc()
【问题讨论】:
-
我没有看到“子节点 2”,我看到“内部 MSBuild 错误:我们不能同时拥有程序集名称和程序集文件/路径。”
-
@RegEdit:指定的错误显示在Visual Studio的out错误输出窗口中。诊断文件没有这样的内容。
标签: .net visual-studio-2012 build