'WinUI does not support arm error on build of MAUI project

When I build my Maui Preview 13 project, I get the following error. But it does not stop the Windows version from deploying and running. I developing on Windows 11 x64 with Visual Studio 2022 17.2 Preview 1.

Error: This version of WinUI does not support arm. Set either 'Platform' or 'PlatformTarget' to one of the following: AnyCPU, x86, x64, or arm64. MyApp C:\Users.nuget\packages\microsoft.windowsappsdk\1.0.0\build\Microsoft.WinUI.targets

I have tried adding what it ask for but am either not adding the right entries or something because nothing has changed it. Has anyone else seen this error and maybe have a solution to fixing the error.

Orgbrat



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source