Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

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


Sign In or Register to comment.