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

Developer technologies | .NET | .NET MAUI
Windows for business | Windows Client for IT Pros | User experience | Other
{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.