I got a runtime failure in packaging wpf app....

c00012 716 Reputation points
2021-08-14T11:14:24.807+00:00

I'm testing packaging my wpf app to windows store.

[What I've tried]

  1. Added windows application packaging project.
  2. Added wpf app to packaging project (dependency setting) and these warnings:
    123234-ice-screenshot-20210814-202056.png
  3. build the solution
  4. publishing app=> following error message:
    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\c0001\source\repos\WpfApp1\WpfApp1\bin\x86\Release\net5.0-windows\win-x86\WpfApp1.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

what should I do to fix this error?

if somebody pick me my mistake, I'd be very appreciated.

thanks,
c00012

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
874 questions
{count} votes