[CLOSED] [2.0] Build with ILMerge

  1. #1

    [CLOSED] [2.0] Build with ILMerge

    Hello,

    Has anyone tested building Ext.Net with the post build templates in Microsoft .NET 4.0? I've added the following to the the Ext.Net project post build event:

    "$(ProjectDir)Build\ILMerge\ILMerge.exe" /ndebug /keyfile:"$(ProjectDir)Properties\Ext.Net.snk" /out:"$(ProjectDir)Build\Results\Ext.Net.dll" "$(ProjectDir)$(OutDir)Ext.Net.dll" /log:"$(ProjectDir)Build\Results\ILMerge_Log.txt" "$(ProjectDir)$(OutDir)Newtonsoft.Json.dll" "$(ProjectDir)$(OutDir)Ext.Net.Utilities.dll"

    Here is what is returned in the ILMerge_Log.txt:

    ILMerge: Writing target assembly 'D:\Application\Library\Required Dependencies\Ext.NET\Source\2.0.0.DP1\Ext.Net\Build\Results\Ext.Net.dll'.
    An exception occurred during merging:
    Unresolved assembly reference not allowed: System.Web.Mvc.
       at System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)
       at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)
       at System.Compiler.Ir2md.VisitReferencedType(TypeNode type)
       at System.Compiler.Ir2md.GetMemberRefIndex(Member m)
       at System.Compiler.Ir2md.GetMethodToken(Method m)
       at System.Compiler.Ir2md.VisitMethodCall(MethodCall call)
       at System.Compiler.Ir2md.VisitAssignmentStatement(AssignmentStatement assignment)
       at System.Compiler.Ir2md.VisitBlock(Block block)
       at System.Compiler.Ir2md.VisitBlock(Block block)
       at System.Compiler.Ir2md.VisitMethodBody(Method method)
       at System.Compiler.Ir2md.VisitMethod(Method method)
       at System.Compiler.Ir2md.VisitClass(Class Class)
       at System.Compiler.Ir2md.VisitModule(Module module)
       at System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation)
       at System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer)
       at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
       at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
       at ILMerging.ILMerge.Merge()
       at ILMerging.ILMerge.Main(String[] args)
    Suggestions?

    Cheers,
    Timothy
    Last edited by Daniil; Jan 16, 2012 at 12:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I guess it also won't work in out of the post build events context.

    I found this:
    http://stackoverflow.com/questions/5...system-web-mvc

    Hope this helps.
  3. #3
    Thanks! I'll build without ILMerge for now and look into it later, I found the same article, I've also found that the Microsoft developers of ILMerge are talking about problems with .NET v4.

    Cheers,
    Timothy
  4. #4
    Thanks for the update.

    Do you mind we close the thread since the problem appears to be not related to Ext.NET?

    Anyways, feel free to update the thread with new details.
  5. #5
    Agreed you can close this one.

    Cheers,
    Timothy

Similar Threads

  1. [CLOSED] [1.0] how to build the ext.net
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 11, 2011, 7:18 PM
  2. ILMerge
    By king1231986 in forum 1.x Help
    Replies: 0
    Last Post: Apr 17, 2010, 10:04 PM
  3. [CLOSED] [1.0] Latest Build and ILMerge fails
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 20, 2010, 2:22 PM
  4. [CLOSED] SVN build
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 31, 2008, 1:54 PM
  5. [CLOSED] Errors in last build
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 07, 2008, 9:45 AM

Posting Permissions