Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

HoloToolKit Sharing and System.Runtime.InteropServices

First of all, thank you guys so much, your posts, and answers here have been invaluable in my HoloLens development efforts!

So, here is my issue:

  • Old project developed when HoloToolKit was first starting out.
  • Now want to implement spatial mapping and Sharing
  • Manually imported just the Sharing folder of the HoloToolKit with Meta files into Unity
  • Press play and everything works great after changing several scripts to look for the HoloToolKit namespace as opposed to HoloToolKit.Unity
  • Drop in the prefab for sharing
  • Test and this works great from the editor (see the connections on the server no prob)
  • Build the project - all hell breaks loose!
  • 647 errors appear in the editor and nothing in visual studio
  • All of these are from the SDK
  • All have the same error as follows:
  • error CS0234: The type or namespace name 'HandleRef' does not exist in the namespace 'System.Runtime.InteropServices' (are you missing an assembly reference?)
  • What I have tried:
  1. Import from the package only the Sharing goodies .... this breaks my project in that all serialized gameobjects become reset. Not feasible to reset all those game objects....
  2. Copy in the System.Runtime.InteropServices.dll file into plugins folder in the assets folder - no joy
  3. Copy in the csc, gmcs, mcs, and smcs files (whatever they are) into the project and try to rebuild - no joy.
  4. pulled my hair out and banged my head on the rock and the hard place until barely conscious - no joy.

Any help you guys have would be absolutely 100% appreciated. Thanks in advance guys, and happy coding!

Best Answer

Answers

Sign In or Register to comment.