I am getting an error while trying to setup Unity for HoloLens 2 Development, specifically, error CS0103: The name 'NonNativeKeyboard' does not exist in the current context

Aswad Tariq 0 Reputation points
2024-03-17T01:52:29.5766667+00:00

I am getting the following error message while trying to setup Unity for Microsoft HoloLens development:
Library\PackageCache\org.mixedrealitytoolkit.uxcore@45c07beda63c\Experimental\NonNativeKeyboard\TMPInputFieldNonNativeKeyboardTrigger.cs(67,42): error CS0103: The name 'NonNativeKeyboard' does not exist in the current context

This happens after I try to import any MRTK3 assets using the MixedRealityFeatureTool, how can I fix this?

I am currently using Unity v 2023.3.20f1, I have also tried on versions (2023.1.17f1, 2023.1.10f1 and 2021.3.27.f1), using Visual studio 2022 for the first 3 versions of Unity and Visual studio 2019 for the last one. Operating system is Windows 11.

Thanks

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.
407 questions
{count} votes

2 answers

Sort by: Most helpful
  1. L Salty 5 Reputation points
    2024-03-20T13:58:13.5266667+00:00

    DO NOT INSTALL MRTK Foundation in MR Feature tool .

    I have solved the same problem refering to : https://learn.microsoft.com/en-us/answers/questions/1464909/nonnativekeyboard-could-not-be-found

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    7 deleted comments

    Comments have been turned off. Learn more

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.