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

About Document Processing Libraries

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Constantinos Petridis
Top achievements
Rank 1
Constantinos Petridis asked on 25 Jun 2014, 01:44 PM
Hello Telerik team,

What is the redistribution process for DPL libraries? It seems that there are based on WPF, meaning that ilmerge is not an option.

Since the documentation does not say anything about this, how Telerik UI for WinForms based applications are going to handle and destribute these dlls?

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 30 Jun 2014, 08:30 AM
Hello Constantinos,

Thank you for writing and for the question.

You should not ILMerge these DLLs and should download it source code and build it, regarding this help article. Please, note that the ValidatePassPhase should be changed in this way:
        public static bool ValidatePassPhrase()
        {
            Application application = Application.Current;
#if !SILVERLIGHT
            // This is the case of console application, Windows Forms application, etc.
            if (application == null)
            {
                if (Application.ResourceAssembly == null)
                {
                    return false;
                }
 
                return Application.ResourceAssembly.GetName().Name == ApplicationName;
            }
            else
#endif
                if (application.Resources.Contains(Key))
                {
                    string applicationName = application.Resources[Key] as string;
                    if (applicationName != null && applicationName == ApplicationName)
                    {
                        return true;
                    }
                }
 
            return false;
        }

Then these DLLs are 'locked' to you application and can be distribute them together with the application which references them.

ILMerge fails to merge the WPF dill because ILMerge does not update WPF resource strings. We will investigate further is it possible to changed the way that WPF read the resource in order to allow ILMerge for these DLLs.

Another way it to include these DLLs as resources and load them from resource on AssemblyResolve event. Please, refer to this article that describes this approach in details.

I hope that answered your question

Regards,
Peter
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Constantinos Petridis
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or