Embedding Telerik control assemblies

2 posts, 0 answers
  1. Kalle
    Kalle avatar
    26 posts
    Member since:
    Feb 2013

    Posted 01 Nov 2013 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Nov 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top