Skip to content
Latchkey

MAUI "NU1101: Unable to find package Microsoft.Maui ..." in CI

NuGet could not find a Microsoft.Maui package at the requested version on any configured feed. MAUI packs come with the workload and SDK band, so a version mismatch or a missing nuget.org source breaks restore.

What this error means

dotnet restore of a MAUI project fails with "error NU1101: Unable to find package Microsoft.Maui.Controls" (or another Microsoft.Maui.* package) with zero versions found.

dotnet
error NU1101: Unable to find package Microsoft.Maui.Controls. No packages exist
with this id in source(s): nuget.org

Common causes

Package version does not match the workload/SDK

MAUI package versions track the SDK and workload band; a pinned version not provided by the installed workload cannot resolve.

The MAUI workload was not installed before restore

Some MAUI packs are provided by the workload. Without dotnet workload install maui, restore cannot find them.

How to fix it

Install the workload, then restore

  1. Run dotnet workload install maui before restore.
  2. Pin the SDK band with global.json so versions line up.
  3. Restore again so the MAUI packs resolve.
.github/workflows/ci.yml
- run: dotnet workload install maui
- run: dotnet restore

Confirm nuget.org is a source

Add the public feed if a custom NuGet.config omits it.

Terminal
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

How to prevent it

  • Install the MAUI workload before restore in CI.
  • Keep MAUI package versions aligned with the SDK band.
  • Include nuget.org in NuGet.config.

Frequently asked questions

What causes "NU1101 "Unable to find package Microsoft.Maui""?
MAUI package versions track the SDK and workload band; a pinned version not provided by the installed workload cannot resolve.
How do I fix NU1101 "Unable to find package Microsoft.Maui"?
Install the workload, then restore

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card