Hello, Welcome to Microsoft Q&A,
First, please ensure that your development environment is Visual Studio 2022, and check if the necessary workloads are installed on VS according to the following link - Install the tools - Mixed Reality | Microsoft Learn.
If you are pairing for the first time on an unpaired computer, make sure to select the Debug or Master build configuration. Then, select "Start Without Debugging" to build and deploy. You will be prompted to enter a PIN. On your HoloLens, generate a PIN by opening the Settings app, navigating to Update > For Developers, and tapping on Pair. When the PIN is displayed on your HoloLens, enter it into Visual Studio.
For the details of deployment, you can refer to Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn.
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.