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

[Solved] XAP Minifier issues

3 Answers 145 Views
Telerik Minifier
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
DenisCL
Top achievements
Rank 1
DenisCL asked on 26 Nov 2010, 11:45 AM
Opening a post to centralize feedback.

First, I would like to thanks the Telerik team about this tool, which look very great for performance improvements.

Bug :

-> Firsts tests give me an exception about unfindable type 'ColorToBrushConverter', with a XamlParseException on InitializeComponent, when I run my SilverLight control after being minified.
As this word didn't exist in my solution, I suppose this class is used in telerik assembly or theme (I'm using Windows7 telerik theme), and removed by the Xap minifier.


Feature Request :

-> Analyzing zip file containing a build output, instead of a xap file.
For an example, an output build with
- MyControl1.xap
- MyControl2.xap
- Telerik.Windows.Controls.zip

I've two silverlight control, using the "Reduce xap size by using application library caching". Both of them are referencing controls of the telerik.windows.controls.zip
Analyzing the whole folder enable you to take care about the library caching mechanism,
Additionally, it enable you to parse multiple xap file in order to search in for multiple dependencies (in example, MyControl1.xap use a telerik control and MyControl2.xap use another telerik control). So the minifier can output a minified Telerik.Windows.Controls.zip, taking care for all developer controls dependencies.

Yes this is advanced feature, but I think nothing is impossible for you :p

Thanks for your work !

3 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 29 Nov 2010, 08:50 AM
Hello DenisCL,

 About the Bug, can tell me which controls you are using in your project. (You also said that you use Windows 7 theme). So I'll create simple application with those controls and check why this class removed. 
Thank you about your feedback and feature suggestion. We are also thinking about this feature and hopefully we will do it for our next releases.

Kind regards,
Miro Miroslavov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
DenisCL
Top achievements
Rank 1
answered on 29 Nov 2010, 10:19 AM
I'm using :
RadTreeView, HierarchicalDataTemplate
RadTreeListView, GridViewRow, ChildTableDefinitions, TreeListViewTableDefinition, RowDetailsTemplate
GridViewImageColumn, GridViewDataColumn
RadExpander,
RadToolBar
ContainerBindingCollection
RadDragAndDropManager, RadBusyIndicator
RadContextMenu
RadWrapPanel, RadDockPanel
RadButton, RadDatePicker, RadTimePicker

referencing :
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Data
Telerik.Windows.Themes.Windows7


To avoid the issue, I've simply added an unused ColorToBrushConverter to my resources, so the component is not removed by the minifier. (I've used a similar workaround to add component used in other project but not in the main project, so I can reference a unique telerik dll, and share it with library caching)

Regards,
0
Miro Miroslavov
Telerik team
answered on 01 Dec 2010, 05:48 PM
Hello DenisCL,

 Thank you for reporting this. It appears to be a problem in the minifier, so I've created work item for this and will be fixed soon.
If we can be of further help, please let us know.

Regards,
Miro Miroslavov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Telerik Minifier
Asked by
DenisCL
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
DenisCL
Top achievements
Rank 1
Share this question
or