Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can not build Azure Spatial Anchors Tutorials

Discussion in 'AR/VR (XR) Discussion' started by Sang_0, Sep 28, 2020.

  1. Sang_0

    Sang_0

    Joined:
    Mar 7, 2019
    Posts:
    13
    I try to make a project for Hololens 2 followed this tutorial https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-asa-01.
    But I can't build the project because of some errors like this:

    Reference Rewriter found some errors while running with command "--target=Temp\StagingArea\Data\Managed\Assembly-CSharp.dll"

    Reference rewriter: Error: type `System.Web.HttpUtility` doesn't exist in target framework. It is referenced from RestSharp.dll at System.String RestSharp.Extensions.StringExtensions::UrlDecode(System.String).
    UnityEngine.Debug:LogError(Object)
    PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1164)
    PostProcessWinRT:process() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:206)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Does anyone know the solution?
    Thank you!
     
  2. ZongKuanLu

    ZongKuanLu

    Joined:
    Nov 20, 2019
    Posts:
    1
    Hey bro,I have the same problem.
    Have you fixed this error?
     
  3. Sang_0

    Sang_0

    Joined:
    Mar 7, 2019
    Posts:
    13
    No, unfortunately not yet. Now I am just using the class WorldAnchorManager.cs to create and save the anchor locally.