umbraco avatar

Umbraco Add Extension Reference

After you create a new Umbraco backoffice extension, it needs to be wired up as a project reference in your main Umbraco instance or it simply won't load. This automates that tedious step by finding your main .csproj file (the one with the Umbraco.Cms package), calculating the relative path to your extension, and adding the ProjectReference entry in the right spot. It'll also add the extension to your .sln file if you have one, which is optional but makes IDE navigation nicer. The skill handles the annoying edge cases like multiple projects or missing solution files. Beats manually editing XML and getting the relative path wrong, which I've definitely never done three times in a row.

skills.sh installs
402
GitHub stars
27
last updated
Aug 21, 2026

Install

$ npx -y skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-add-extension-reference --agent claude-code

Installs into .claude/skills of the current project.

Files

Add Extension Reference to Umbraco Instance

What is it?

After creating a new Umbraco backoffice extension project, it must be added as a project reference in the main Umbraco instance's .csproj file. Without this reference, the extension will not be loaded when running the Umbraco site.

If a solution file (.sln) exists, the extension should also be added to it for proper IDE support (Visual Studio, Rider). This is optional - the extension will work without being in the solution.

When to Use

Use this skill after:

  • Creating a new extension with dotnet new umbraco-extension
  • Moving or copying an extension project to your solution
  • Setting up a new extension from the umbraco-backoffice blueprints

Workflow

Step 1: Find the Main Umbraco Project

The main Umbraco instance .csproj file must be discovered dynamically. Search for it using these criteria:

# Find all .csproj files
Glob: **/*.csproj

# Then search for the one containing Umbraco.Cms package reference
Grep: Umbraco\.Cms" Version  (in *.csproj files)

The main Umbraco project will have:

  • A <PackageReference Include="Umbraco.Cms" ...> entry

Sponsors

Details

Repository
github.com/umbraco/umbraco-cms-backoffice-skills
Category
.NET & C#
First seen
Jun 3, 2026

More from umbraco/umbraco-cms-backoffice-skills

All 76

Recommended

More .NET & C#
1umbraco avatarumbraco-context-apiumbraco/umbraco-cms-backoffice-skillsUnderstand and use Context API in Umbraco backoffice (foundational concept)402skills.sh installs
2umbraco avatarumbraco-routingumbraco/umbraco-cms-backoffice-skillsUnderstand and use routing in Umbraco backoffice (foundational concept)401skills.sh installs
3umbraco avatarumbraco-entity-create-option-actionumbraco/umbraco-cms-backoffice-skillsImplement entity create option actions in Umbraco backoffice using official docs400skills.sh installs
4umbraco avatarumbraco-menu-itemsumbraco/umbraco-cms-backoffice-skillsImplement menu items in Umbraco backoffice using official docs400skills.sh installs
5umbraco avatarumbraco-repository-patternumbraco/umbraco-cms-backoffice-skillsUnderstand and use repositories in Umbraco backoffice (foundational concept)400skills.sh installs
6umbraco avatarumbraco-collection-viewumbraco/umbraco-cms-backoffice-skillsImplement collection views in Umbraco backoffice using official docs398skills.sh installs