I try to make a project for Hololens 2 followed this tutorial Use Azure Spatial Anchors to anchor objects in the real world - Training | Microsoft Learn.
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!