VS2022 Error When Deploying HoloLens 2 Application: GameAssembly.lib Not Found

琛博 程 0 Reputation points
2024-10-29T13:31:49.65+00:00

I encountered an error while deploying a HoloLens 2 application using VS2022: GameAssembly.lib not found. I noticed that the file does not exist in the Build folder and I'm not sure why it wasn't generated. I am deploying via Wi-Fi.

User's image

Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ying Li - MSFT 1,285 Reputation points Microsoft Vendor
    2024-10-31T05:58:03.5233333+00:00

    Hello, Welcome to Microsoft Q&A,

    In Release compilation mode, the HoloLens device and PC must remain connected during both the building and deploying of the UWP project on VS. In Debug or Master compilation mode, the UWP can be built first without a connection to the HoloLens.

    Please check if the build is successful in Debug or Master compilation mode. If it is, the error might be due to an invalid connection between the HoloLens and the PC. You can refer to the Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn to ensure the connection is valid and that your PC is paired with the HoloLens on VS via a PIN code.


    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.

    0 comments No comments

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.