Merging the telerik assemblies for deployment ( referenced assemblies embedded in EXE )

4 posts, 0 answers
  1. Ramon
    Ramon avatar
    11 posts
    Member since:
    Aug 2012

    Posted 05 Aug 2012 Link to this post

    Hi

    Am new at using Telerik for WPF,

    so i created a WPF Telerik solution in VS and included the GridView component then
    it referenced the 4 Telerik  DLL's. added the Grid to the Mainwindow.XAML build the solution
    and all is Good.

    The problem is the Compiler spits out a bunch of Folders(EN FR DE JA TR ES ETC...) with the .EXE
    and Also included the 4 Telerik DLL's.

    Is it possible to build the Application and produce only the .EXE with the assemblies embedded in it and
    no Folder's for all those nations.i tried many methods with no success
    EX.( ILMerge - SmartAssembly also tried to place dlls as resource did not work either)
    I dont know what am doing wrong the app works but how to merge all those Dll's in it?


    I search your forms most examples are for WinForms and no (Telerik.WinControls.RadTypeResolver.Instance.ResolveTypesInCurrentAssembly = true;)
    similar method for WPF
    .


    Thank you regards


  2. Vic
    Vic avatar
    36 posts
    Member since:
    Aug 2012

    Posted 09 Nov 2012 Link to this post

    Hello Ramon,

    Did you receive any help with this?

    Thanks,
    Vic
  3. UI for WPF is Visual Studio 2017 Ready
  4. Fabien
    Fabien avatar
    43 posts
    Member since:
    Sep 2008

    Posted 29 Nov 2012 Link to this post

    Hi,

    merging of WPF controls is simply a nightmare.

    First of all, I can propose you to try this scenarii:

    - protect your assemblies : http://www.telerik.com/help/wpf/protecting-telerik-radcontrols-assembly.html
      (yeah I know, it's not a really good protection :s)
    - Embed assemblies with tools like smartassembly, theses tools have their own assemblies resolvers and proxy. (don't use ressources compression and encryption)


    ILMerge is not able to merge WPF assemblies. They contain resources with encoded assembly identities. ILMerge is unable to deserialize the resources, modify the assembly identities, and then re-serialize them.

    Anyway, if you can't buy tools like SmartAssembly, you can try to make your own assembly resolver :
    http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx


  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jan 2013 Link to this post

    Hi,

    I've just posted a blog related to this. You can check it here:
    http://blogs.telerik.com/vladimirenchev/posts/13-01-15/how-to-merge-assemblies-into-wpf-application

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top