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.
dlls not found for builds
Hi,
I've come up with an issue when building the tutorial Holograms 100 project. As instructed, I imported the project from Unity to VS, modified the appxmanifest file, changed the target, and then run it with Start without Debugging, which gives me errors in attached image.
As you see the issue is that somehow the dll files is not generated at the right place. For example as I look into the path for the first error, the dll file is actually in a Unprocessed file under Debug. And every time I rebuild it the dll will just automatically reappear in that file. I am guessing VS created this Unprocessed thing and put everything not recognized into it. but why? Is it because VS is not configured correctly? Interesting thing is that for the third error (in Assembly-CSharp), there is no such Unprocessed file under Debug, and still no dll file found. I am totally unsure why this is happening.
I tried searching online and unchecking+rechecking boxes under build option in configuration does not work for me. I believe the last two errors are also relevant to this issue. Any ideas? Thanks for any suggestions.
Best Answers
-
johnp ✭
Ok, I have solved my problem. Just in case anyone comes into this in the future, the discussion @Patrick posted is the start point of solution. Basically when you find there are missing files you want to go to Tools->Options->NuGet Package Manager to see whether the automatic check for missing file is turned on. NuGet itself can help you integrate and configure files and framework automatically.
Instead, when you click the NuGet Package Manager and you see a line "an error occurred loading this property page" (which was my situation), the link also provides solution: go to Tools->Extensions and Updates, choose Installed tab and you will see the default NuGet Package Manager that Visual Studio configured for you. You need to uninstall that, and then choose Online tab, search for NuGet Package Manager and manually install it yourself. Then go back to the property page and you should see options available now. Somehow it is possible that the NuGet Package Manager preinstalled by VS will not load correctly.
Finally I come up with error: MissingMethodException - Method not found: 'Boolean Microsoft.Tools.Connectivity.RemoteDevice.Ping(). Some googling helps you identify the problem that the window 10 sdk on the device is not configured correctly. There many ways out of this, I personally remove both sdks (10.0.10586 and 10.0.10240) that the VSToolsForWindows1C.exe installed for me, and use this link https://go.microsoft.com/fwlink/?LinkID=698771 to install version 10.0.10586 only. Then the project finally deploys successfully on the emulator. However I later tried to unsintall the 10.0.10586 again and use VSToolsForWindows1C.exe to reinstall both sdks, it also worked. So I guess if you come into this step, just try the uninstall-reinstall combo of things and hope it will work.
Wish this can help people. Cheers.
9
Answers
In addition to changing the build type to x86, you might try right clicking on the solution and choosing "rebuild all". I had that same issue you showed and it helped to rebuild the entire solution prior to trying to deploy to the hololens. YMMV.
The shorter the better or serialweaver.exe will fail
@Jimbohalo10 I created another new project directly under C:\ and now the path is C:\holo100. But it seems that serialweaver is still crashing, and error msgs are similar. I am not is this the right way to shorten the path length you mentioned since it doesn't work.
I've attached new error msgs and the info in output window. Pretty sure there is length issue based on the index out of range exception, but unsure how to handle it. Do you see other way out of this?
@johnp I cannot see why this is happening, but similar problems in other thread here
Could you try building the code given in my Tutorial: Debugging with Holograms 211 with update code library
This is very detailed and would avoid my of the pitfalls that earlier code has given HoloLens developers. This would test your development environment and make troubleshooting easier.
Could it be this?
===
This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.
(Daddy, what does 'now formatting drive C:' mean?)
Ok, I have solved my problem. Just in case anyone comes into this in the future, the discussion @Patrick posted is the start point of solution. Basically when you find there are missing files you want to go to Tools->Options->NuGet Package Manager to see whether the automatic check for missing file is turned on. NuGet itself can help you integrate and configure files and framework automatically.
Instead, when you click the NuGet Package Manager and you see a line "an error occurred loading this property page" (which was my situation), the link also provides solution: go to Tools->Extensions and Updates, choose Installed tab and you will see the default NuGet Package Manager that Visual Studio configured for you. You need to uninstall that, and then choose Online tab, search for NuGet Package Manager and manually install it yourself. Then go back to the property page and you should see options available now. Somehow it is possible that the NuGet Package Manager preinstalled by VS will not load correctly.
Finally I come up with error: MissingMethodException - Method not found: 'Boolean Microsoft.Tools.Connectivity.RemoteDevice.Ping(). Some googling helps you identify the problem that the window 10 sdk on the device is not configured correctly. There many ways out of this, I personally remove both sdks (10.0.10586 and 10.0.10240) that the VSToolsForWindows1C.exe installed for me, and use this link https://go.microsoft.com/fwlink/?LinkID=698771 to install version 10.0.10586 only. Then the project finally deploys successfully on the emulator. However I later tried to unsintall the 10.0.10586 again and use VSToolsForWindows1C.exe to reinstall both sdks, it also worked. So I guess if you come into this step, just try the uninstall-reinstall combo of things and hope it will work.
Wish this can help people. Cheers.