Joraheta
Joraheta

Reputation: 1

Merge references into output .dll C#

I've trying to do this lately without sucess, I would appreciate new feedback to help me clarify things.

My project has the following structure.

References:

Classes:

Output:

I've tried to merge using:

ILMerge: Duplicate type 'Project.IDocument'

ILMerge with /internalize flag: Duplicate type 'Project.IDocument'

ILMerge with /allowDup flag: Adds a random number to spacename (e.g Project79859.Pdf), external project referencing says it cant find spacename even after changing it.

Jeffrey Richter Method (http://bit.ly/bDPbh3): Seems to work only for executable output.

Any thoughts or suggestions are welcome. Thanks in advance.

PS. Target project works as it is now, with the 5 dll's un-embedded, but specs require only 1 dll to be present.

Upvotes: 0

Views: 761

Answers (1)

Parimal Raj
Parimal Raj

Reputation: 20585

embed the assemblies to resource and when needed load them from memory using reflection.

Upvotes: 1

Related Questions