日期:2014-05-18  浏览次数:20879 次

求助:iLMerge合并文件时出错
我是菜鸟,在使用iLMerge合并EXE文件和DLL文件时报错如下:不知道问题出在什么地方?

System.InvalidOperationException: Unresolved assembly reference not allowed: System.Core.
  在 System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
  在 System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
  在 System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
  在 System.Compiler.Ir2md.GetMemberRefIndex(Member m)
  在 System.Compiler.Ir2md.GetMethodToken(Method m)
  在 System.Compiler.Ir2md.VisitMethodCall(MethodCall call)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitMethodCall(MethodCall call)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitExpressionList(ExpressionList expressions)
  在 System.Compiler.Ir2md.VisitMethodCall(MethodCall call)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitAssignmentStatement(AssignmentStatement assignment)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitBlock(Block block)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitBlock(Block block)
  在 System.Compiler.Ir2md.VisitMethodBody(Method method)
  在 System.Compiler.Ir2md.VisitMethod(Method method)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitClass(Class Class)
  在 System.Compiler.Ir2md.Visit(Node node)
  在 System.Compiler.Ir2md.VisitModule(Module module)
  在 System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
  在 System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
  在 System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
  在 System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
  在 System.Compiler.Module.WriteModule(String location, CompilerParameters options)
  在 ILMerging.ILMerge.Merge()
  在 ILMergeGUI.Form1.btnMerge_Click(Object sender, EventArgs e)
  在 System.Windows.Forms.Control.OnClick(EventArgs e)
  在 System.Windows.Forms.Button.OnClick(EventArgs e)
  在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  在 System.Windows.Forms.Control.WndProc(Message& m)
  在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
  在 System.Windows.Forms.Button.WndProc(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



------解决方案--------------------
通常是引用不同版本.NET庫