Hello, Welcome to Microsoft Q&A,
When configuring the Build Settings for the UWP platform, if you select ‘Build and Run on’ as ‘Local Machine’, you will see the warning: ‘The local machine does not support running projects compiled for the ARM64 architecture. The project will be built, but it will not run.’ This is the reason you met these errors.
To build and deploy your application to HoloLens 2, the best practice is to select ‘Build and Run on’ as ‘Local Machine’ and choose ‘Build’ instead of ‘Build And Run’ to generate the Visual Studio project first. With Visual Studio, you can then deploy your application to HoloLens 2 via a wireless network or a USB cable. You can refer to the following tutorials:
- Set your build target section in this tutorial
- Using Visual Studio to deploy and debug
Additionally, Unity 2020 is out of support. We recommend using Unity 2021.3 LTS and Visual Studio 2022 to create Mixed Reality apps.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.