I have followed the exact steps Microsoft lists under multiple projects within their Microsoft Holographic - Academy tutorials. I completed them all, and all of them worked just fine from creation to export and testing. This is using Unity3D / C# which gets compiled into a Visual Studio Solution (sln) file.
After completing those, I went on to build my own app - which built just fine as well. No problem!
Now when I try to build - I get a strange error that the c-Sharp.firstpass file (the exported/cross-compiled dll from what I understand) can not be found.
Now even the projects that built successfully won't build any more.
I will paste the exact error below.
Things I have tried:
There seems to be a referencing issue - so I have also unreferenced/referenced the mentioned file.
Thanks for any and all help. To be clear, this is a Windows 10 Universal app being developed for the Microsoft Hololens. However, the device itself seems to have little to nothing to do with the build process in this case, other than targeting it.
Best,
Addyarb
The error:
The command ""D:\Development\Hololens Builds\PlanetApp\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Unprocessed\Assembly-CSharp-firstpass.dll" -pdb -verbose -unity-engine="D:\Development\Hololens Builds\PlanetApp\Planetarium\Unprocessed\UnityEngine.dll" -unity-networking=D:\Development\Hololens Builds\PlanetApp\Planetarium\Unprocessed\UnityEngine.Networking.dll "D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\obj\x86\Release\x86\Release"" exited with code 1. Assembly-CSharp-firstpass D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\Assembly-CSharp-firstpass.csproj 180
Metadata file 'D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found Assembly-CSharp D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp\CSC
Metadata file 'D:\Development\Hololens Projects\Planetarium\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll' could not be found Planetarium D:\Development\Hololens Builds\PlanetApp\Planetarium\CSC
--UPDATE---
My previous answer still applies so I won't remove it. But for fixing this specific issue, make sure you place your generated app in a folder structure that does not contain any spaces. There seems to be a bug in SerializatioWeaver.exe that does not properly read the path and won't be able to find necessary Unity extensions.
Make sure you are using the correct Unity3D version built for HoloLens. Always use the latest version compatible as announced on the HoloLens academy forums - at the time of writing this, that version is 5.4 Beta 18 and you can download it here
Always download the installer from the link provided on the HoloLens forum as the regular Unity builds are different. You need the special Unity3D version built for HoloLens
When installing a new version, always install in a new location than the previous one. After you install Unity, always install the UWP Runtime that you can find on the same page that I linked above (the UWP runtime is built specifically for each version so always re-download and install after Unity). When installing the UWP Runtime, make sure you select the right location for the Unity 3D install folder (the folder you just installed your unity into).
If everything is installed correctly, your builds should start working again.
After about 3 days with no results, I factory reset the hololens and the computer I am working with. After reinstalling all relevant software, my builds worked just fine. I saved to the same drives/folders and everything.
If you take this approach, remember to back up your work!
This certainly isn't the 'best' way to handle this issue, since I can't just factory reset for each bug. But I was no closer to solving this issue and, well, time is money.
Goodluck and thank you for the answers!
I fixed a similar missing DLL issue in the produced SLN by using a HoloLens project kit for Unity https://github.com/microsoft/HoloToolkit-Unity as opposed to starting from scratch. Obvious but got me going.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With