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

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

3 Answers 331 Views
Installer and Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Ramon
Top achievements
Rank 1
Ramon asked on 05 Aug 2012, 05:18 AM

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


3 Answers, 1 is accepted

Sort by
0
Vic
Top achievements
Rank 1
Iron
answered on 09 Nov 2012, 07:15 PM
Hello Ramon,

Did you receive any help with this?

Thanks,
Vic
0
Fabien
Top achievements
Rank 2
answered on 29 Nov 2012, 08:20 AM
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


0
Vlad
Telerik team
answered on 15 Jan 2013, 02:02 PM
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.

Tags
Installer and Visual Studio Extensions
Asked by
Ramon
Top achievements
Rank 1
Answers by
Vic
Top achievements
Rank 1
Iron
Fabien
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or