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.
A bug in win10 SDK?Cannot run my first HoloLens program
Hey guys,i am building my first HoloLens project according to the first Tutorial of the Academy,i followed every step,but when i build it in the Unity,an Exception occured...
So i found the folder,the folder name is 10.0.15063.0
it seems why Unity cannot find the folder.Then i renamed it as Facade,and now it can build .sln project.
Butthis project has many erros as follows:
I don't know whether these problem have some relationship?Someone can help me to solve this problem?the problem really Frustrated me...
Best Answer
-
OptionsJimbohalo10 ✭✭✭
@Wision1994 said:
@Jimbohalo10 said:
Hi by default Unity WSA player will select latest version 10.15063. In Unity player build settings set Target SDK to 14393 not 15063. The Visual Studio 2015 does not support 15063.Hey,Jim.I tried this method, unfortunately,it is still wrong...
CS0433 type“IFrameworkView”Also exists in “Windows.Foundation.UniversalApiContract, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime”and“Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime”
I really can't understand how this erro happened....
The error is due to corruption in the file project.json, something like TWO copies of the SDK library are being loaded.
Delete the old project and start again.Suggest you follow the instructions in https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_101
Here are updated instructions for later versions of Unity like 2017.1
Remember to change the WSA Build to
Export the project from Unity to Visual Studio
In Unity select File > Build Settings.
Select Windows Store in the Platform list and click Switch Platform.Set SDK to Universal 10 and Build Type to D3D,
Set Target Device HoloLens
Set UWP SDK 10.0.14393.0
Check Unity C# Projects.
Click Add Open Scenes to add the scene.
Click Build.You may need to install the missing features/close VS2017 for the first time
Click install and close VS 2017 with the red xWhen install is complete Then double click on Origami.sln again
5
Answers
Which version of visual studio are you running?
This may help though instead of the links they use are outdated: https://forums.hololens.com/discussion/288/beginner-problems
Taqtile
Hey ,thank you for your reply.
I browsed the link,it seems that he reinstalled the OS and solved the problem.While my OS is windows 10 Pro,1607 version.It seems fulfil requirements?
But i really cannot find the folder Facade in the path C:\ Program Files(x86)\ Windows Kits \ 10 \ UnionMetadata \ Facade as is seen in the pictures above.Maybe that is the problem?
Oh,almost forgot...the version of my VS is Visual Studio 2015 update3,i download win10 SDK 10.0.10586.0 and 10.0.14393.0,and my unity version is 5.6.0(because i tried every version of 5.5,they all didn't work...)
Sounds like you are on the right VS and Unity...
It seems like something is wrong with your UWP SDK installation but I am not certain. Perhaps someone else on here knows more.
I assume you are building to Windows Store, Universal 10, and Holographic? (unity build settings)
Taqtile
Hi by default Unity WSA player will select latest version 10.15063. In Unity player build settings set Target SDK to 14393 not 15063. The Visual Studio 2015 does not support 15063.
Hey,Jim.I tried this method, unfortunately,it is still wrong...
CS0433 type“IFrameworkView”Also exists in “Windows.Foundation.UniversalApiContract, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime”and“Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime”
I really can't understand how this erro happened....
Thank you for your help,
I think maybe something wrong with my SDK...but i think i download and install it in a right way(when i install Visual Studio,i checked UWP tools and SDK)
The error is due to corruption in the file project.json, something like TWO copies of the SDK library are being loaded.
Delete the old project and start again.
Suggest you follow the instructions in https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_101
Here are updated instructions for later versions of Unity like 2017.1
Remember to change the WSA Build to
Export the project from Unity to Visual Studio
In Unity select File > Build Settings.
Select Windows Store in the Platform list and click Switch Platform.
Set SDK to Universal 10 and Build Type to D3D,
Set Target Device HoloLens
Set UWP SDK 10.0.14393.0
Check Unity C# Projects.
Click Add Open Scenes to add the scene.
Click Build.
You may need to install the missing features/close VS2017 for the first time
Click install and close VS 2017 with the red x
When install is complete Then double click on Origami.sln again
Thanks Jim and grossnickle,thank you for your help,i reinstall my OS,and now it works!Many thanks!