Hi,
I'm trying to use ILMerge to create components for the Umbraco web framework. I thought it would be nice is I only had to distribute one dll with my component.
The setup I'm using is ( a bit simplified):
MyComponent.csproj (Visual Studio web project)
....
--References
----umbraco.dll (local reference, Copy Local == false)
----SomeComponent.dll (local reference, Copy Local == true)
----System.Web (GAC reference)
....
The reason that I have Copy Local == false on the umbraco.dll is that this dll is part of the solution that my component must be deployed to. The SomeComponent.dll is a component used by my UserControls in my project and this is the dll I would like to merge with MyComponent.dll
However if I execute:
"ilmerge.exe /out:MyComponent.dll SomeComponent.dll"
i get an error message saying:
"Unresolved assembly reference not allowed: umbraco"
I can however not just include the umbraco.dll since this would result in the classes within the umbraco.dll being defined twice when I deploy the MyComponent.dll in the umbraco web application.
So my question is there anyway to avoid this error message or is ILMerge an all or nothing solution
Regards,
Rasmus Oudal Edberg