Search Unity

Build Errors in VS, Unity, Hololens

Discussion in 'AR' started by anthonypaul_unity, Sep 19, 2019.

  1. anthonypaul_unity

    anthonypaul_unity

    Joined:
    Apr 19, 2018
    Posts:
    2
    Hi, I've built many HoloLens apps in the past, without too much issue.

    I hadn't done any development in maybe 5-6 months and have a new laptop. Now I'm trying to build the stock demos (Origami, MR101) but I get build errors in VS. I have a feeling it has to do with the .NET runtime and/or Core... But I can't figure it out.

    The errors are many in VS:

    Code (Boo):
    1. 1>------ Build started: Project: Origami, Configuration: Release x86 ------
    2. 1>C:\Users\matth\AppData\Local\Temp\.NETCore,Version=v5.0.AssemblyAttributes.cs(3,27,3,34): error CS0234: The type or namespace name 'Runtime' does not exist in the namespace 'System' (are you missing an assembly reference?)
    3. 1>C:\Users\matth\AppData\Local\Temp\.NETCore,Version=v5.0.AssemblyAttributes.cs(3,71,3,94): error CS0518: Predefined type 'System.String' is not defined or imported
    4. 1>C:\Users\matth\AppData\Local\Temp\.NETCore,Version=v5.0.AssemblyAttributes.cs(3,96,3,116): error CS0246: The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?)
    5. 1>C:\Users\matth\AppData\Local\Temp\.NETCore,Version=v5.0.AssemblyAttributes.cs(3,119,3,147): error CS0518: Predefined type 'System.String' is not defined or imported
    6. 1>C:\Users\matth\Desktop\Origami-u2017\App\Origami\UnityGenerated.cs(9,18,9,32): error CS0518: Predefined type 'System.Object' is not defined or imported
    7. 1>C:\Users\matth\Desktop\Origami-u2017\App\Origami\App.cs(11,11,11,14): error CS0518: Predefined type 'System.Object' is not defined or imported
    8. 1>C:\Users\matth\Desktop\Origami-u2017\App\Origami\UnityGenerated.cs(11,23,11,27): error CS0518: Predefined type 'System.Void' is not defined or imported
    9. 1>C:\Users\matth\Desktop\Origami-u2017\App\Origami\App.cs(25,40,25,59): error CS0518: Predefined type 'System.Object' is not defined or imported
    The errors continue...

    .NETCore, Version 5.0 seems maybe not right to me?

    Here are my Unity settings.

    upload_2019-9-19_14-27-50.png

    I've tried Unity 2018 LTS, 2017 LTS, Tried VS 2017, 2019, tried various Windows SDK

    Any help MUCH appreciated.
     
  2. anthonypaul_unity

    anthonypaul_unity

    Joined:
    Apr 19, 2018
    Posts:
    2
    I solved this eventually. Appears I had NuGet auto install dependencies turned off while trying to solve some other issue.