# How to Upgrade a Telerik UI for WinForms Project

## Environment

| Product Version | Product         | Author                                                                          |
| --------------- | --------------- | ------------------------------------------------------------------------------- |
| 2022.2.510      | UI for WinForms | [Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova) |

## Description

When a new version of the Telerik UI for WinForms suite is released, a common requirement for our customers is to upgrade their projects. This article lists different approaches that you may follow.

## Manual Upgrade

Usually, the previously installed version of the Telerik UI for WinForms suite should be uninstalled first from the WinForms Control Panel: *Control Panel\Programs\Programs and Features*:

![how-to-upgrade-a-project 001](https://www.telerik.com/products/winforms/documentation/assets/cb8380b166f6941dccabebfb0f6fb9a9/how-to-upgrade-a-project001.png)

![how-to-upgrade-a-project 002](https://www.telerik.com/products/winforms/documentation/assets/cc326ed8bf7ba80e0dea187d9cf7da03/how-to-upgrade-a-project002.png)

Then, the new version should be installed, e.g. by installing the **.msi** from the [Downloads](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/download-product-files) section in the Telerik account: [Installing On Your Computer](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/installing-on-your-computer)

### Update Telerik Assemblies

If you have a project that uses an older version of the Telerik UI for Winforms suite, most probably you wouldn't be able to build the project or open the designer. This is because it still has references to the old version which is not available on the local machine anymore:

![how-to-upgrade-a-project 003](https://www.telerik.com/products/winforms/documentation/assets/26e32b84431d0b2601e7e9e260052be7/how-to-upgrade-a-project003.png)

1\. Check the references to all Telerik controls in your project and make sure that they are the same version considering the suffix as well (.20 or .40) since it is usually the most common reason for such a behavior after upgrading. Better yet, you can remove all references and add them anew by using the DLLs from your fresh installation: [Updating Assemblies in a Project](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/updating-assemblies-in-a-project).

2\. Delete the **license.licx** file.

3\. After that, you should rebuild your project, close Visual Studio and open it again to make sure that no references are kept in the memory by Visual Studio.

4\. Ensure that no old versions are available in GAC: [Examine the GAC and remove old assemblies](https://www.telerik.com/products/winforms/documentation/knowledge-base/examine-the-gac)

## Update Telerik NuGet Packages

In case of using the [Telerik NuGet packages](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/install-using-nuget) in your project, you will need to update the installed package accordingly:

![how-to-upgrade-a-project 004](https://www.telerik.com/products/winforms/documentation/assets/45b560fbdf59e8064662a282ef7ddc66/how-to-upgrade-a-project004.png)

![how-to-upgrade-a-project 006](https://www.telerik.com/products/winforms/documentation/assets/fbe0176cea3d67151d31be20fefab823/how-to-upgrade-a-project006.png)

## Automatic Upgrade

Once a new version is released you will be notified via the [Download New Version](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/visual-studio-extensions/latest-version-acquirer) message:

![how-to-upgrade-a-project 007](https://www.telerik.com/products/winforms/documentation/assets/662881865a7b08959b3ad17689f61ab8/how-to-upgrade-a-project007.png)

The Latest Version Acquirer tool automatically retrieves the freshest Telerik UI for WinForms distribution, available on the Telerik website. Clicking the `Update Now` button starts the [Upgrade Wizard](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/visual-studio-extensions/upgrade-project) which is used to change the version of Telerik UI for WinForms your projects use.

In addition to the pure assembly reference change, the upgrade wizard provides several important features:

* Check if a new version of Telerik UI for WinForms is available on the Telerik website.

* Download a newly discovered version.

* Visual Studio toolbox update.

* Project themes upgrade.

* Current project backup.

> important The Upgrade Wizard doesn't update the NuGet package. In case of using the NuGet approach, feel free to update the package.

![how-to-upgrade-a-project 005](https://www.telerik.com/products/winforms/documentation/assets/b917f20917640c755bfb0ab857e7d90c/how-to-upgrade-a-project005.png)

## See Also

* [Updating Assemblies in a Project](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/updating-assemblies-in-a-project)
* [Install using NuGet Packages](https://www.telerik.com/products/winforms/documentation/installation-and-upgrades/install-using-nuget)
* [Upgrade Wizard](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/visual-studio-extensions/upgrade-project)
* [Download New Version](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/visual-studio-extensions/latest-version-acquirer)
* [Designer is Not Loading](https://www.telerik.com/products/winforms/documentation/knowledge-base/designer-not-loading)
