Could not load type 'Telerik.Windows.Controls.Selector' from assembly 'Telerik.Windows.Controls, Version=2011.2.712.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. D:\Tina\Desktop\DabDab\Tina_Dabdab\DabDab\DabDab.Core.UI\Attributes\AttributeView.xaml 1 1 DabDab.Core.UI
Unrelated question: I am not referencing Telerik.Windows.Data.dll anywhere directly in my solution, yet it gets added to the xap file. How can I find out why?
Thanks,
Justyna
5 Answers, 1 is accepted
Basically the AssemblyMinifier tool extracts from the assemblies only those classes that are used in the selected RadControls's classes. The tool searches recursively through the main class that describes the selected RadControls and then though every other related to these controls class. This way a set of classes is extracted so that a minified assembly is created.
Therefore if the controls you selected during the minimization process don't use the Telerik.Windows.Controls.Selector class, its implementation will be stripped out of the Telerik.Windows.Controls minified assembly. And if you want to include it in the assembly, you will need to check a control that uses the class. For example if you minify the Telerik.Windows.Controls.dll along with the Telerik.Windows.Controls.Navigation.dll and check the RadTabControl from the Navigation assembly, the Telerik.Windows.Controls.Selector class won't be stripped out from the Controls assembly.
However, there is a feature request in our PITS to implement a feature in the AssemblyMinifier to allow you to manually define which classes to include in the minified assembly. You can vote for the feature thus increasing its priority.
Ad for the other question, the xap file should include only assemblies required by your application and if the Telerik.Windows.Data.dll assembly is included in the XAP file, then it should be included as a referenced assembly somewhere in your solution.
Regards,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
If I upload xap file it doesn't do anything for hours and hours. If I upload more than one dll (by clicking on Browse button and selecting many files with Ctr key) the list of controls to select never appears. I waited for an hour and nothing happened.
The only thing that works is when I select one dll at a time, but then there is no way to choose Telerik.Windows.Controls.Selector
because it is not on the list.
We are aware that the XAP minifier hangs for bigger XAP files as described in this PITS item.
On the other hand, selecting multiple dlls also may lead to some time-out. Is there any other controls that you need to minify, we could try to minify them and send them to you? Unfortunately, the mentioned Selector cannot be minified.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks,
We tried to minify these controls' dlls but their number is 7 and it appears that it's too big. Currently, we can mark this scenario as unsupported. Please excuse us for the caused inconvenience.
Kind regards,Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>