Open pramodhuded opened 2 years ago
I ran into the similar issues last week. The first issue I had was with multiple copies of Newtonsoft.json.dll (not sure if you had the same issue) and worked around it by renaming the one in Assets/Plugins. After renaming the Netonsoft.json.dll, I ran into the issue you encountered. I tried to empty the folder Library\PackageCache but still had the same issue. After trying out other things, I finally gave up and re-cloned the project to start with a clean slate. I finally was able to build the Unity project and deployed to my HL2. Here are the tools I used: VS2022, Unity 2020.3.8f1, MixedRealityFeatureTool-1.0.2111.0-Preview. I strongly recommend using the feature tool to import MRTK instead of using Unity Asset/Import. If there's popup window prompting for overwriting the existing shader, click 'Ignore'. As soon as 2_PlaceDigitalTwinAssets scene is loaded, go to File -> Build Settings and switch platform to UWP and do a build. I'd recommend doing a build at the end of each unit to ensure there're no anomalies accidently introduced. Best luck!
I found at first that this error: The correct thing to do is ignore, in which case it will still build.
However, I then found that I couldn't run it because of the same errors.
This is using the 20.3.8fi per the doc recommendations.
Did you re-clone the repo? I was told that the good Microsoft folks have checked in changes for addressing the issue.
Yeah, I just cloned it. Most recent changes to the repo were 7-10 months ago.
unity\mslearn-mr-adt-in-unity>git pull
Already up to date.
Hey There!
Let me take a quick look at this issue and I'll see if I can get back to you, or update the repo with some fixes :)
I have followed the entire tutorial and able to experience live data when i put in game mode ,now trying to build the app its giving the below error ,please help me with this UnityException: Failed to run reference rewriter with command "--target=Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.OpenXR.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.OpenXR.Features.ConformanceAutomation.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.OpenXR.Features.MockRuntime.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.OpenXR.Features.OculusQuestSupport.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.OpenXR.Features.RuntimeDebugger.dll" "--target=Temp\StagingArea\Data\Managed\UnityEngine.SpatialTracking.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.Management.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.ARSubsystems.dll" "--target=Temp\StagingArea\Data\Managed\Unity.XR.ARFoundation.dll" "--target=Temp\StagingArea\Data\Managed\Unity.Timeline.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Maps.Unity.SupportingScripts.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.OpenXR.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Async.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Extensions.SceneTransitionService.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Extensions.Tracking.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Gltf.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.GpuStats.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.PlaneFinding.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.OpenXR.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Extensions.HandPhysics.dll" "--target=Temp\StagingArea\Data\Managed\BladeMR.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.Shared.dll" "--target=Temp\StagingArea\Data\Managed\UnityEngine.XR.LegacyInputHelpers.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.WindowsSceneUnderstanding.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.XRSDK.dll" "--target=Temp\StagingArea\Data\Managed\Unity.Addressables.dll" "--target=Temp\StagingArea\Data\Managed\Unity.InputSystem.dll" "--target=Temp\StagingArea\Data\Managed\Unity.ResourceManager.dll" "--target=Temp\StagingArea\Data\Managed\Unity.ScriptableBuildPipeline.dll" "--target=Temp\StagingArea\Data\Managed\Unity.Subsystem.Registration.dll" "--target=Temp\StagingArea\Data\Managed\Unity.TextMeshPro.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.XRSDK.WindowsMixedReality.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.SDK.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.SDK.Experimental.Interactive.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.CameraSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.DiagnosticsSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.InputAnimation.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.InputSimulation.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.InputSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.SceneSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.SpatialAwarenessSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Services.TeleportSystem.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Tests.Utilities.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.SpatialAudio.Spatializer.dll" "--target=Temp\StagingArea\Data\Managed\netstandard.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Providers.WindowsVoiceInput.dll" "--target=Temp\StagingArea\Data\Managed\MessagePack.dll" "--target=Temp\StagingArea\Data\Managed\System.Buffers.dll" "--target=Temp\StagingArea\Data\Managed\System.IO.Pipelines.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.Logging.dll" "--target=Temp\StagingArea\Data\Managed\System.Net.Http.Json.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Protocols.MessagePack.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Protocols.Json.dll" "--target=Temp\StagingArea\Data\Managed\System.Diagnostics.DiagnosticSource.dll" "--target=Temp\StagingArea\Data\Managed\System.Memory.dll" "--target=Temp\StagingArea\Data\Managed\System.Text.Encodings.Web.dll" "--target=Temp\StagingArea\Data\Managed\nunit.framework.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.Logging.Abstractions.dll" "--target=Temp\StagingArea\Data\Managed\Newtonsoft_1.Json.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Maps.Unity.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Client.Core.dll" "--target=Temp\StagingArea\Data\Managed\System.Threading.Tasks.Extensions.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Bcl.AsyncInterfaces.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.Options.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Client.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.DependencyInjection.Abstractions.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.Http.Connections.Client.dll" "--target=Temp\StagingArea\Data\Managed\Newtonsoft.Json.dll" "--target=Temp\StagingArea\Data\Managed\TestLibrary.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.Http.Connections.Common.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Input.DotNet.dll" "--target=Temp\StagingArea\Data\Managed\System.Runtime.CompilerServices.Unsafe.dll" "--target=Temp\StagingArea\Data\Managed\System.Text.Json.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.DependencyInjection.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.Connections.Abstractions.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.Extensions.Primitives.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.SignalR.Common.dll" "--target=Temp\StagingArea\Data\Managed\Microsoft.AspNetCore.Http.Features.dll" "--target=Temp\StagingArea\Data\Managed\MessagePack.Annotations.dll" "--target=Temp\StagingArea\Data\Managed\System.Threading.Channels.dll" "--additionalreferences=Temp\StagingArea\Data\Managed,Temp\StagingArea\Data\Managed\Plugins\X86,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X86,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X86,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\X86,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X86,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\ARM,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM64,Temp\StagingArea\Data\Managed\Plugins\X64,Temp\StagingArea\Data\Managed\Plugins\ARM64" "--platform=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.19041.0\Facade\Windows.winmd" "--dbg=pdb" "--framework=Temp\StagingArea\Data\Managed" "--alt=Microsoft.Win32.SafeHandles,mscorlib;System,mscorlib;System,System;System,System.ComponentModel.Composition;System,System.Core;System.CodeDom.Compiler,System;System.Collections,mscorlib;System.Collections.Concurrent,mscorlib;System.Collections.Concurrent,System;System.Collections.Generic,mscorlib;System.Collections.Generic,System;System.Collections.Generic,System.Core;System.Collections.ObjectModel,mscorlib;System.Collections.ObjectModel,System;System.Collections.Specialized,System;System.ComponentModel,System;System.ComponentModel.DataAnnotations,System.ComponentModel.DataAnnotations;System.ComponentModel.DataAnnotations.Schema,System.ComponentModel.DataAnnotations;System.Data,System.Data;System.Data.Common,System.Data;System.Diagnostics,mscorlib;System.Diagnostics,System;System.Diagnostics.CodeAnalysis,mscorlib;System.Diagnostics.Contracts,mscorlib;System.Diagnostics.Tracing,mscorlib;System.Dynamic,System.Core;System.Globalization,mscorlib;System.IO,mscorlib;System.IO,System;System.IO,System.Core;System.IO,System.Runtime.WindowsRuntime.UI.Xaml;System.IO.Compression,System;System.IO.Compression,System.IO.Compression.FileSystem;System.IO.IsolatedStorage,mscorlib;System.Linq,System.Core;System.Linq.Expressions,System.Core;System.Net,System;System.Net.NetworkInformation,System;System.Net.Security,System;System.Net.Sockets,System;System.Numerics,System.Numerics;System.Reflection,mscorlib;System.Reflection.Emit,mscorlib;System.Resources,mscorlib;System.Runtime,mscorlib;System.Runtime.CompilerServices,mscorlib;System.Runtime.CompilerServices,System.Core;System.Runtime.ExceptionServices,mscorlib;System.Runtime.InteropServices,mscorlib;System.Runtime.InteropServices,System;System.Runtime.InteropServices,System.Core;System.Runtime.InteropServices.ComTypes,mscorlib;System.Runtime.InteropServices.ComTypes,System;System.Runtime.InteropServices.WindowsRuntime,mscorlib;System.Runtime.Serialization,mscorlib;System.Runtime.Serialization,System.Runtime.Serialization;System.Runtime.Serialization.Json,System.Runtime.Serialization;System.Runtime.Versioning,mscorlib;System.Runtime.Versioning,System;System.Security,mscorlib;System.Security.Authentication,System;System.Security.Authentication.ExtendedProtection,System;System.Security.Claims,mscorlib;System.Security.Principal,mscorlib;System.ServiceModel,System.ServiceModel;System.ServiceModel.Channels,System.ServiceModel;System.ServiceModel.Description,System.ServiceModel;System.ServiceModel.Dispatcher,System.ServiceModel;System.ServiceModel.Security,System.ServiceModel;System.ServiceModel.Security.Tokens,System.ServiceModel;System.Text,mscorlib;System.Text.RegularExpressions,System;System.Threading,mscorlib;System.Threading,System;System.Threading,System.Core;System.Threading.Tasks,mscorlib;System.Threading.Tasks,System.Core;System.Windows.Input,System;System.Xml,System.Runtime.Serialization;System.Xml,System.Xml;System.Xml.Linq,System.Xml.Linq;System.Xml.Schema,System.Xml;System.Xml.Serialization,System.Xml;,Windows.winmd;,Windows.AI.MachineLearning.MachineLearningContract.winmd;,Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract.winmd;,Windows.ApplicationModel.Calls.Background.CallsBackgroundContract.winmd;,Windows.ApplicationModel.Calls.CallsPhoneContract.winmd;,Windows.ApplicationModel.Calls.CallsVoipContract.winmd;,Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract.winmd;,Windows.ApplicationModel.SocialInfo.SocialInfoContract.winmd;,Windows.ApplicationModel.StartupTaskContract.winmd;,Windows.Devices.Custom.CustomDeviceContract.winmd;,Windows.Devices.DevicesLowLevelContract.winmd;,Windows.Devices.Printers.PrintersContract.winmd;,Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract.winmd;,Windows.Devices.SmartCards.SmartCardEmulatorContract.winmd;,Windows.Foundation.FoundationContract.winmd;,Windows.Foundation.UniversalApiContract.winmd;,Windows.Gaming.XboxLive.StorageApiContract.winmd;,Windows.Graphics.Printing3D.Printing3DContract.winmd;,Windows.Networking.Connectivity.WwanContract.winmd;,Windows.Networking.Sockets.ControlChannelTriggerContract.winmd;,Windows.Security.Isolation.IsolatedWindowsEnvironmentContract.winmd;,Windows.Services.Maps.GuidanceContract.winmd;,Windows.Services.Maps.LocalSearchContract.winmd;,Windows.Services.Store.StoreContract.winmd;,Windows.Services.TargetedContent.TargetedContentContract.winmd;,Windows.Storage.Provider.CloudFilesContract.winmd;,Windows.System.Profile.ProfileHardwareTokenContract.winmd;,Windows.System.Profile.ProfileSharedModeContract.winmd;,Windows.System.Profile.SystemManufacturers.SystemManufacturersContract.winmd;,Windows.System.SystemManagementContract.winmd;,Windows.UI.ViewManagement.ViewManagementViewScalingContract.winmd;,Windows.UI.Xaml.Core.Direct.XamlDirectContract.winmd;,Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd;,Windows.ApplicationModel.Activation.ActivationCameraSettingsContract.winmd;,Windows.ApplicationModel.Activation.ContactActivatedEventsContract.winmd;,Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd;,Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract.winmd;,Windows.ApplicationModel.Calls.LockScreenCallContract.winmd;,Windows.ApplicationModel.FullTrustAppContract.winmd;,Windows.ApplicationModel.Preview.InkWorkspace.PreviewInkWorkspaceContract.winmd;,Windows.ApplicationModel.Preview.Notes.PreviewNotesContract.winmd;,Windows.ApplicationModel.Resources.Management.ResourceIndexerContract.winmd;,Windows.ApplicationModel.Search.Core.SearchCoreContract.winmd;,Windows.ApplicationModel.Search.SearchContract.winmd;,Windows.ApplicationModel.Wallet.WalletContract.winmd;,Windows.Devices.Portable.PortableDeviceContract.winmd;,Windows.Devices.Printers.Extensions.ExtensionsContract.winmd;,Windows.Devices.Scanners.ScannerDeviceContract.winmd;,Windows.Devices.Sms.LegacySmsApiContract.winmd;,Windows.Gaming.Input.GamingInputPreviewContract.winmd;,Windows.Gaming.Preview.GamesEnumerationContract.winmd;,Windows.Gaming.UI.GameChatOverlayContract.winmd;,Windows.Gaming.UI.GamingUIProviderContract.winmd;,Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract.winmd;,Windows.Management.Deployment.Preview.DeploymentPreviewContract.winmd;,Windows.Management.Workplace.WorkplaceSettingsContract.winmd;,Windows.Media.AppBroadcasting.AppBroadcastingContract.winmd;,Windows.Media.AppRecording.AppRecordingContract.winmd;,Windows.Media.Capture.AppBroadcastContract.winmd;,Windows.Media.Capture.AppCaptureContract.winmd;,Windows.Media.Capture.AppCaptureMetadataContract.winmd;,Windows.Media.Capture.CameraCaptureUIContract.winmd;,Windows.Media.Capture.GameBarContract.winmd;,Windows.Media.Devices.CallControlContract.winmd;,Windows.Media.MediaControlContract.winmd;,Windows.Media.Playlists.PlaylistsContract.winmd;,Windows.Media.Protection.ProtectionRenewalContract.winmd;,Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract.winmd;,Windows.Networking.XboxLive.XboxLiveSecureSocketsContract.winmd;,Windows.Perception.Automation.Core.PerceptionAutomationCoreContract.winmd;,Windows.Security.EnterpriseData.EnterpriseDataContract.winmd;,Windows.Security.ExchangeActiveSyncProvisioning.EasContract.winmd;,Windows.System.Profile.ProfileRetailInfoContract.winmd;,Windows.System.UserProfile.UserProfileContract.winmd;,Windows.System.UserProfile.UserProfileLockScreenContract.winmd;,Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd;,Windows.UI.Core.AnimationMetrics.AnimationMetricsContract.winmd;,Windows.UI.Core.CoreWin