# Upgrading Umbraco UI Builder

This article explains how to manually upgrade Umbraco UI Builder to the latest version. Before upgrading Umbraco UI Builder, see the [Version Specific Upgrade Notes](/umbraco-ui-builder/upgrading/version-specific.md) for potential breaking changes and common pitfalls.

{% hint style="warning" %}
Before upgrading, take a complete backup of your site and database.
{% endhint %}

## Get the latest version of Umbraco UI Builder

To get the latest version of Umbraco UI Builder, you can upgrade using either of the two options:

* [NuGet](#nuget)
* [Visual Studio](#visual-studio)

### NuGet

* To install the latest version via NuGet:

```sh
dotnet add package Umbraco.UIBuilder
```

* To specify a package version:

```sh
dotnet add package Umbraco.UIBuilder --version <VERSION>
```

* After adding the package reference, restore dependencies:

```sh
dotnet restore
```

### Visual Studio

1. Open Visual Studio.
2. Navigate to `Tools` -> `NuGet Package Manager` -> `Manage NuGet Packages for Solution...`.
3. Select **Umbraco.UIBuilder**.
4. Choose the latest version from the drop-down and click **Install**.
5. After installation, verify the update in your **.csproj** file:

```xml
<ItemGroup>
  <PackageReference Include="Umbraco.UIBuilder" Version="xx.x.x" />
</ItemGroup>
```

## Upgrade Sub-Packages

If you are using any of the following sub-packages, upgrade them as well:

| Sub-package                        | Description                                            |
| ---------------------------------- | ------------------------------------------------------ |
| Umbraco.UIBuilder.Core             | Core functionality without infrastructure dependencies |
| Umbraco.UIBuilder.Infrastructure   | Infrastructure-specific implementations                |
| Umbraco.UIBuilder.Web              | Core logic requiring a web context                     |
| Umbraco.UIBuilder.Web.StaticAssets | Static assets for the presentation layer               |
| Umbraco.UIBuilder.Startup          | Registers UI Builder with Umbraco                      |
| Umbraco.UIBuilder                  | The main UI Builder package                            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.umbraco.com/umbraco-ui-builder/upgrading/upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
