【问题标题】:Unable To Build Solution In Visual Studio Getting error 'child node 2 exited prematurely'无法在 Visual Studio 中构建解决方案出现错误“子节点 2 过早退出”
【发布时间】: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& 值,NodePacketValueFactory1 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


【解决方案1】:

我有同样的错误,完全不同的原因。我正在使用 NuGet 包中的 SyncFusion Carousel 控件。原来轮播在 XAML 中不能有明确定义的 SelectedIndex。非常奇怪的错误代码,似乎我应该收到一条运行时错误消息“无法设置属性 SelectedIndex”。

【讨论】:

    猜你喜欢
    • 2016-04-26
    • 1970-01-01
    • 2020-11-27
    • 1970-01-01
    • 2016-01-18
    • 1970-01-01
    • 1970-01-01
    • 2011-12-16
    • 1970-01-01
    相关资源
    最近更新 更多