Hello everyone.

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.
Options

Error CS006

Hello all:

I am trying to build my second project: Origami from Holographic Academy 101; but I am getting these errors: I installed the new release of Visual Studio Community Update 3 RC. Any guidance will be much appreciated.

Error CS0006 Metadata file 'D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found Assembly-CSharp D:\HoloLens\Origami\UWP\Assembly-CSharp\CSC 1 Active
Error CS0006 Metadata file 'D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found Origami D:\HoloLens\Origami\App\Origami\CSC 1 Active
Error CS0006 Metadata file 'D:\HoloLens\Origami\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll' could not be found Origami D:\HoloLens\Origami\App\Origami\CSC 1 Active
Error The command ""D:\HoloLens\Origami\App\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Unprocessed\Assembly-CSharp-firstpass.dll" -pdb -verbose -unity-engine="D:\HoloLens\Origami\App\Origami\Unprocessed\UnityEngine.dll" -unity-networking="D:\HoloLens\Origami\App\Origami\Unprocessed\UnityEngine.Networking.dll" "D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\obj\x86\Release\x86\Release"" exited with code 1. Assembly-CSharp-firstpass D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\Assembly-CSharp-firstpass.csproj 176
Error Exception :System.IndexOutOfRangeException: Index was outside the bounds of the array. Assembly-CSharp-firstpass D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\EXEC
Warning CS8021 No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options. Assembly-CSharp-firstpass D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\CSC 1 Active
Warning The element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/2'. List of possible elements expected: 'CapabilityChoice' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10' as well as 'Capability, DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10'. Origami D:\HoloLens\Origami\App\Origami\Package.appxmanifest 31

Best Answer

  • Options
    AkALoPyAkALoPy
    Answer ✓

    Make sure you have "Allow NuGet to download missing packages" enabled go to Tools --> Options --> NuGet Package Manager --> General then check both boxes
    "Allow NuGet to download missing packages" & "Automaticly check for missing packages during build in visual studio"

    Hope this helps

Answers

  • Options

    Were you able to build prior to installing Update 3 of Visual Studio? Can you try completely deleting your Origami\UWP folder and rebuilding it from scratch from Unity's Build Settings dialog?

  • Options

    Hello Timg:
    I have done that... also, it didn't work before update 3 of Visual Studio. I have deleted the whole project, and started all over again... the good thing is that by now, I have already master the first lesson.

  • Options

    @Ferran when installing VS did you ensure you have these enabled?

    Ensure that Tools (1.3.1) and Windows 10 SDK (10.0.10586) are checked.

  • Options

    Hello neerajwadhwa:
    I enabled everything when I installed. What it is very interesting is that my project 100 works fine; but project 101 for the origami one.

  • Options

    @Ferran in your 101 project folder go in and delete the following highlighted folders and files.

    Your project and solution files will be named Origami instead of Planetarium but delete the Origami version of these same files.

    Keep an eye on that project folder, rebuild the UWP project from Unity, and make sure that you see new files and folders appear in that same project folder. (Unity tends to remember previous build folders, and sometimes it is easy to build them in an old and incorrect location).

    After rebuilding, open the newly build solution in Visual Studio and try deploying.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    I have done that many times without any success.

    I am using a Surface Pro 3, 8 Gb of Memory; Unity HoloLens 5.4.0b18-HTP (64-bit); Visual Studio 3 RC and Windows 10 Pro Insider Preview Evaluation Copy Build 14366.

  • Options

    By the way: There are two warnings too... And maybe those warnings are the reason for the errors... Here they are:

    Severity Code Description Project File Line Suppression State
    Warning CS8021 No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options. Assembly-CSharp-firstpass D:\HoloLens\Origami\UWP\Assembly-CSharp-firstpass\CSC 1 Active
    Severity Code Description Project File Line Suppression State
    Warning

    The element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10/2'. List of possible elements expected: 'CapabilityChoice' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10' as well as 'Capability' in namespace 'http://schemas.microsoft.com/appx/manifest/uap/windows10' as well as 'Capability, DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/manifest/foundation/windows10'. Origami D:\HoloLens\Origami\App\Origami\Package.appxmanifest 31

  • Options

    @Ferran are you targeting 10586?

    The current published recommendation is Visual Studio with Update 2.
    Using the Update 3 Release Candidate and using the latest Insider bits may be exposing you to some new yet to be appreciated issues.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options
    AkALoPyAkALoPy
    Answer ✓

    Make sure you have "Allow NuGet to download missing packages" enabled go to Tools --> Options --> NuGet Package Manager --> General then check both boxes
    "Allow NuGet to download missing packages" & "Automaticly check for missing packages during build in visual studio"

    Hope this helps

  • Options

    Thank you so much guys!!! Finally I was able to finish the Origami Projects!!!

  • Options

    I ran into this issue as well. I had to move my folders closer to the root directory due to an earlier issue with paths being too long. Deleting as suggested above by Holosheep, and then rebuilding from the Unity Build Manager, did solve my problem though.

Sign In or Register to comment.