1---2name: mixed-reality3description: Work on C# and .NET-adjacent mixed-reality solutions around HoloLens, MRTK, OpenXR, Azure services, and integration boundaries where .NET participates in the stack. USE FOR: building or integrating mixed-reality solutions with C#; working on HoloLens, MRTK, Azure mixed-reality services, or OpenXR-related code; reviewing how .NET services. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.4---56# Mixed Reality with .NET78## Trigger On910- building or integrating mixed-reality solutions with C#11- working on HoloLens, MRTK, Azure mixed-reality services, or OpenXR-related code12- reviewing how .NET services support a mixed-reality client1314## Workflow15161. Acknowledge that much of Microsoft mixed-reality guidance is Unity-centered even when the implementation language is C#; do not pretend it is a standard .NET desktop stack.172. Separate engine-side concerns, device capability concerns, and backend service integration so the system boundary stays understandable.183. Use MRTK and OpenXR guidance intentionally, and verify current toolkit status before choosing a package or template path. See [references/patterns.md](references/patterns.md) for established architecture patterns.194. Treat performance, input, and spatial UX as core constraints, not polish items.205. When .NET mostly lives on the backend for a mixed-reality product, route that backend work through the relevant ASP.NET Core, SignalR, or Azure skill instead of overloading this one.216. Validate with the actual device or emulator path whenever possible because editor-only success is not enough.2223## References2425- [references/patterns.md](references/patterns.md) - MRTK service architecture, OpenXR feature plugins, input action patterns, spatial awareness observers, and cross-cutting patterns for dependency injection, object pooling, and graceful degradation.26- [references/examples.md](references/examples.md) - Common HoloLens scenarios including spatial anchors, hand menus, spatial mapping physics, eye tracking, remote rendering, voice commands, QR code tracking, and shared multi-user experiences.2728## Deliver2930- clear boundaries between device code and backend services31- mixed-reality guidance grounded in current Microsoft tooling32- realistic validation expectations for MR scenarios3334## Validate3536- the chosen toolkit path is current enough for the project37- device-specific constraints are explicit38- backend and client responsibilities are not blurred