Telerik Upgrade API Analyzer

With every release of Telerik UI for Silverlight we’re trying to avoid introducing changes that affect the public API. However, sometimes such changes are needed for the product to evolve. We understand that this could cause issues when upgrading your app to the latest release. That is why we have the Telerik Upgrade API Analyzer; its purpose is to make the upgrade process easier by comparing both versions and determining the problematic areas.

Telerik Upgrade API Analyzer could be used when upgrading your desktop application such as WPF or WinForms as well as your Silverlight or ASP.NET Web application.

Why Do You Need This Tool?

In short, the Telerik Upgrade API Analyzer tool will help you with the upgrade of the Telerik controls to a newer version. It thoroughly analyzes the code of your project and provides a list of the changes found between the currently used release and the release you’re planning to upgrade to. Such changes could include obsolete and removed methods and properties as well as modified methods and properties. Additionally, the tool points out the exact piece of code that is affected by a certain change and in cases that involve an obsolete method/property, the tool gives suggestions of how to modify that code.

At this stage of development, Upgrade API Analyzer checks only the C# code of your application.

Where Do You Get Telerik Upgrade API Analyzer?

Telerik Upgrade API Analyzer is a ClickOnce application and you can download the installation file directly from our site.

The tool relies on Microsoft .NET Framework 4.5.2 and if you haven’t got the framework on your machine, the setup of the tool installs it automatically.

How Do You Use The Tool?

Running the Telerik Upgrade API Analyzer opens the screen shown in Figure 1.

Figure 1: Initial screen of Telerik Upgrade API Analyzer

Silverlight Initial screen of Telerik Upgrade API Analyzer

All you need to do is:

  1. Choose the platform.

  2. Select the current version of Telerik assemblies you are using.

  3. Select the version you would like to upgrade to.

    The three comboboxes are populated on the fly depending on your choices, so you should select the desired values consecutively.

  4. Open the solution you’re planning to upgrade.

The tool starts automatically analyzing the code, as shown in Figure 2, and lists all the changes found between both versions, as demonstrated in Figure 3.

Figure 2: The tool starts analyzing as soon as you open a solution

Silverlight The tool starts analyzing as soon as you open a solution

Figure 3: Upgrade API Analyzer lists the found differences

Silverlight Upgrade API Analyzer lists the found differences

Telerik Upgrade API Analyzer provides a detailed list of the found differences between both versions in a convenient way for reviewing. The tool uses RadGridView for WPF to present the results, so you can benefit from its features such as sorting, filtering and resizing columns.

For each of the changes, you can see the following information:

  • Difference: It could be Obsolete, Deleted and Modified.

By default, the Modified changes are not shown as they actually indicate that there is an internal change in the method/class, which does not affect its function as a whole and does not require any action from your side. Still, you could see the Modified changes by updating the Filter of the Difference column as shown in Figure 4.

Figure 4: Displaying all the changes found including the Modified ones.

Silverlight Displaying all the changes found including the Modified ones.

  • Kind: It could be Type, Property, Method, and Field.
  • Node: The name of the Type/Property/Method/Field.
  • Assembly: The assembly where the change is found.
  • Message: Presents a kind of “What to do now?” message; gives additional information on what action should be taken regarding the concrete change in order to make the upgrade flawless.
  • Project: The project where the change resides.
  • Source: The file in the project where the change is found.
  • Line: The exact line in the source file.
  • Character: The character in the previously set line.

Additionally, Upgrade API Analyzer provides the option to save the gathered information for a later moment through the Export button in the upper right corner, as shown in Figure 5. The data will be arranged and exported to a HTML document. The exported information include the currently visible (filtered) data in the grid.

Figure 6: API Analyzer provides export to a HTML document

Silverlight API Analyzer provides export to a HTML document

Do You Have a Question?

Upgrade API Analyzer is a subject of current and future development and we’d appreciate any feedback you might have regarding the tool. Let us know what you’d expect the tool to do and whether you’ve experienced any issues with it. Your feedback will help us prioritize our plans for adding the most requested features.

Please send us your comments either through the Feedback link inside API Analyzer or directly at UpgradeApiAnalyzer@telerik.com.

Additionally, please review the Frequently Asked Questions section in the API Analyzer Helps Upgrading Telerik Projects blog post.

In this article