Skip to content

Nightly Builds

Shane Neuville edited this page Jun 22, 2026 · 13 revisions

.NET MAUI Version Pinning & Nightly Build Integration (youtube.com)

Starting with .NET 8, it is possible to test out nightly builds, builds from Pull Requests, or any other set of .NET MAUI NuGet packages.

NuGet Feed

Each dotnetN feed carries the nightly .NET N builds of the .NET MAUI NuGet packages. Pick the feed that matches the .NET version you are targeting:

For .NET 10 nightly (current — from the main branch, plus the net10.0 servicing branch) Nightly NuGet Package Feed URL for .NET 10 "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json"

For .NET 11 nightly (next release, in preview — from the net11.0 branch) Nightly NuGet Package Feed URL for .NET 11 "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json"

Warning

The versions on this feed are ordered by version number, not by date — the newest build is not necessarily at the top of the list. Check the "Include prereleases" checkbox in your NuGet explorer, then pick by build family:

  • .NET 10 (dotnet10): use the *-ci.inflight.* builds — these come from the in-flight branch and carry the latest "shipping next" bits that dogfooders validate against. (The *-ci.main.* builds are ordinary main-branch CI.)
  • .NET 11 (dotnet11): use the *-preview.N.* builds.

To add this NuGet feed to your Visual Studio, please refer to the docs.

Alternatively, you can use the dotnet CLI to add a source directly. For example:

dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json -n dotnet10
dotnet nuget add source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json -n dotnet11

Or do dotnet new nugetconfig to create a NuGet.config file and add this content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
    <add key="dotnet11" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json" />
  </packageSources>
</configuration>

Consume NuGet in .NET MAUI project

New .NET MAUI projects contain the following package references, if these are not there, you can add them manually:

  • <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
  • <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />

The Version is set by default to the $(MauiVersion) variable which will cause the version of the .NET MAUI Workload installed to always be substituted in its place. You can change this version either by editing the .csproj file directly, or by using the NuGet Package Manager to a newer version such as one of the nightly versions from the feed (for example a 10.0.*-nightly or 11.0.*-preview build).

You will still need to occasionally update your .NET MAUI Workloads (typically you will do this by updating Visual Studio), and some newer versions of the NuGet packages may produce errors if you attempt to install them on older workload and/or SDK versions.

Clone this wiki locally