Windows build compilation issue in the MAUI app using .NET 9

Manishk_Optimus 1 Reputation point
2024-12-26T06:59:21.4466667+00:00

The windows project is not getting compiled and it can reproduced using the following steps

 

  1. Create a new MAUI project.
  2. Add a NuGet package reference to Microsoft.Identity.Client.Desktop: <PackageReference Include="Microsoft.Identity.Client.Desktop" Version="4.66.2" />
  3. Note that the app cannot be compiled on Windows.

The issue is reported under MAUI GitHub repo: WMC1006 compile error for Windows MAUI .NET 9 project when referencing Microsoft.Identity.Client.Desktop · Issue #25883 · dotnet/maui

 

Can you please expedite on this and let us know by when we can expect the resolution

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,713 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.