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 while building in Unity-ArgumentNullException: Argument cannot be null. Parameter name: path1

Hi,
I am attempting to complete the first tutorial. When I try to build the project in Unity I get the following error. Any help would be appreciated.

ArgumentNullException: Argument cannot be null.
Parameter name: path1
System.IO.Path.Combine (System.String path1, System.String path2) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Path.cs:112)
UnityEditor.Scripting.Compilers.UWPReferences.GetWindowsKit10 (System.String& folder, System.Version& version) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/UWPReferences.cs:152)
UnityEditor.Scripting.Compilers.UWPReferences.GetReferences () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/UWPReferences.cs:44)
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.GetAdditionalReferences (WSASDK wsaSDK) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:375)
PostProcessUAP.GetAdditionalReferenceAssembliesDirectories () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAP.cs:50)
PostProcessWinRT.RunSerializationWeaver () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:438)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:123)
UnityEditor.Metro.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:130)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)
UnityEditor.HostView:OnGUI()

Best Answer

Answers

  • Options
    Jimbohalo10Jimbohalo10 ✭✭✭
    edited July 2016

    You are missing the Windows 10 SDK for Unity and several other items you may even have the wrong Unity version.
    Uninstall Unity and start from the procedure in this thread
    New Unity Technical Preview - 5.4b24 HTP

    Part of the reply was

    First Install the Tools In the case of "platform errors", you many have to uninstall the your version of Visual Studio and Unity first.

    Then install products in the sequence described in install_the_tools

    Watch the video Microsoft HoloLens: Course 101E – Ch. 1 – Project Creation https://www.youtube.com/watch?v=qotpUpIQxVU

    Download the code https://github.com/Microsoft/HolographicAcademy/tree/Holograms-101
    and then carry out each tutorial using code from the Completed section of code https://github.com/Microsoft/HolographicAcademy

  • Options

    @Diego31416 said:

    In a nutshell, the ProgramFiles(x86) environmental variable must be set to "C://Program Files" on 32-bit Windows 10. How do I propose the change to the install? Others might have the same issue on 32-bit machines.

    Oh! I would not see this as I use the 64-bit Unity version, as I use 64-bit Windows 10 Professional. Fortunately the HoloLens Emulator is 32-bit.
    However I have the following on the Administrator Command SET


    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)


    and you will need
    ProgramFiles=C:\Program Files (x86)


    So call Control Panel -> System and add a NEW Environment variable using information above

    Once loaded you will need to check with SET command the variable, or it may appear in your profile when you do a restart of Windows 10.

    I can set this on my machine but cannot test as I and Windows 10 64-bit

Sign In or Register to comment.