PDA

View Full Version : [CLOSED] [2.0] Build with ILMerge



Timothy
Jan 14, 2012, 4:26 PM
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\Buil d\Results\Ext.Net.dll'.
An exception occurred during merging:
Unresolved assembly reference not allowed: System.Web.Mvc.
at System.Compiler.Ir2md.GetAssemblyRefIndex(Assembly Node 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(Ass ignmentStatement 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

Daniil
Jan 15, 2012, 7:56 AM
Hi,

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

I found this:
http://stackoverflow.com/questions/5518177/ilmerge-problem-with-system-web-mvc

Hope this helps.

Timothy
Jan 15, 2012, 3:22 PM
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

Daniil
Jan 16, 2012, 9:31 AM
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.

Timothy
Jan 16, 2012, 1:46 PM
Agreed you can close this one.

Cheers,
Timothy