This is a migrated thread and some comments may be shown as answers.

Embedding Telerik control assemblies

1 Answer 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kalle
Top achievements
Rank 1
Kalle asked on 01 Nov 2013, 10:27 AM
Hi,

We have been developing a WPF dashboard application that uses extensions (class libraries) that use Telerik WPF controls like Charting.
Is it possible to somehow embed needed Telerik control assemblies to each extension DLL so that we would not have to add these control assemblies also to hosting application (dashboard)? We are using MEF and PRISM.

I've seen some information about setting "Embed interop" property to True on class libraries but I'm not sure if that would do the trick. We would like our Dashboard and its extensions to be as loosely coupled as possible.

One "solution" would be to copy all needed control DLLs to Dashboard's running directory but we would like our extensions to only have one class library.

Br,

Kalle

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Nov 2013, 02:14 PM
Hi Kalle,

I am afraid the "Embed Interop Types" setting cannot be used on the Telerik assemblies.

I would suggest that you check this blog post explaining how you could merge the assemblies. Basically in PRISM you can mark the Telerik dlls referenced in your modules with Copy Local to False - in this way they will not be copied to the output directory.  Then you can add all Telerik assemblies required by all RadControls in your application as embedded resources of your Shell project and use the steps described in the blog post.

I hope this helps.

Regards,
Yana
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
General Discussions
Asked by
Kalle
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or