Cant build project from Unity 5 using the Kinect for Windows store

I am trying to build a project in Unity3D which uses the Kinect v2 for The Windows store. To build a windows store app from unity it 1st builds a visual studio project from which you then build the final app. I am getting errors when I try to build the visual studio project.
Some guys seem to have figured it out for Unity 4 here, Though I have tried everything they suggested and read through all the posts and links in great detail yet I am still having the same error.

Here is my error

First-chance exception at 0x76004598 in Template.exe: Microsoft C++ exception: Platform::ClassNotRegisteredException ^ at memory location 0x0643F1C0. HRESULT:0x80040154 Class not registered

WinRT information: Class not registered

Stack trace:
combase.dll!76727455()
vccorlib120_app.dll!5003a438()
vccorlib120_app.dll!5003b337()
KinectUnityAddin.dll!50061296()
KinectUnityAddin.dll!500745af()
KinectUnityAddin.dll!50062eef()

If there is a handler for this exception, the program may be safely continued.

Ok I’ve got this working for Unity 5

  1. Set up the dll in metro folder to build for WSAPlayer
  2. Tick microphone and webcam boxes in player settings, publishing settings, capabilities
  3. Build for windows 8.1 (do not tick C# project box)
  4. One project will be created in the VS solution. Right click on references\ add reference\Windows8.1\Extensions\ then tick the box for WindowsPreview.Kinect (x86 windows 8.1 version)