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.
error NU1101: Unable to find package Microsoft.Maui.Controls. No packages exist
with this id in source(s): nuget.orgCommon 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
- Run
dotnet workload install mauibefore restore. - Pin the SDK band with global.json so versions line up.
- Restore again so the MAUI packs resolve.
- run: dotnet workload install maui
- run: dotnet restoreConfirm nuget.org is a source
Add the public feed if a custom NuGet.config omits it.
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.orgHow 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.