2

I'm trying to create a custom Control using a silverlight Class Library that inherits from an 3rd party control(like telerik radcontrols), and when I add my class library dll to another project, and try to use my custom Control an error occurs telling that the reference for the reference where the class that inherits with my control from the 3rd party control is missing.

for example: If i inherit my costum control from an radButton, when i try my dll in other project, the compiler ask me also to import the telerik dll.

Is there any way of merging the .dll from my class library with the one needed from the 3rd party control, or to make custom control working without the need of add the the reference for my class library and the assembly from the 3rd party control?

My goal is only to import my dll and nothing else to use my component.

Thanks

  • I already try to use ILMerge, but when i use my new dll i can't draw the component in the main page, but the intelSense of the VS identify that component. I don't know why. – Artur Machado Jul 30 '10 at 09:08
  • Is it an x64 problem? http://stackoverflow.com/questions/2961357/using-ilmerge-with-net-4-libraries – NT_ Jul 30 '10 at 09:17
  • no... i don't have an x64... but is in VS10 and windows 7 – Artur Machado Jul 30 '10 at 09:25
  • Try asking Telerik support about this. http://www.telerik.com/support.aspx – NT_ Jul 30 '10 at 09:59
  • The fastest solution would be to include the source code with your project (or to dissasemble it with Reflector). The correct solution would be to troubleshoot somehow, which I think involves searching for similar ILMerge problems. – NT_ Jul 30 '10 at 11:29

1 Answers1

2

I would advise against merging the assemblies because you will create extra work for yourself every time you're going to be upgrading to a newer version of your assembly or the 3rd party side (Telerik).

I you insist on doing this, you can use ILMerge

NT_
  • 2,660
  • 23
  • 25