Build error happens when building a project in Unity with .NET scripting backnd.
UnityException: Failed to run serialization weaver with command "-pdb" "-verbose" "-unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.dll" "Temp\StagingArea\TempSerializationWeaver" "-lock=UWP\project.lock.json" "@C:\Users\furuta\AppData\Local\Temp\tmp55ca4f4b.tmp" "-additionalAssemblyPath=Temp\StagingArea\Data\Managed".
The cause of the problem is plugins in MixedRealityToolkit.Providers > WindowsMixedReality > DotNetAdapter > Plugins.
If I delete the plugin folder, build successes.
Steps to reproduce the behavior:
A project is built successfully.

Full error log
UnityException: Failed to run serialization weaver with command "-pdb" "-verbose" "-unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.dll" "Temp\StagingArea\TempSerializationWeaver" "-lock=UWP\project.lock.json" "@C:\Users\furuta\AppData\Local\Temp\tmp55ca4f4b.tmp" "-additionalAssemblyPath=Temp\StagingArea\Data\Managed".
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.pdb
Symbols will be read from Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Async.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.Async.dll
+ Microsoft.MixedReality.Toolkit.Utilities.AsyncCoroutineRunner
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SharedInternalsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.SharedInternalsModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SpriteMaskModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.SpriteMaskModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SpriteShapeModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.SpriteShapeModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.StreamingModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.StreamingModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.StyleSheetsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.StyleSheetsModule.dll
+ UnityEngine.StyleSheets.StyleComplexSelector
+ UnityEngine.StyleSheets.StyleProperty
+ UnityEngine.StyleSheets.StyleRule
+ UnityEngine.StyleSheets.StyleSelector
+ UnityEngine.StyleSheets.StyleSelectorPart
+ UnityEngine.StyleSheets.StyleSheet
+ UnityEngine.StyleSheets.StyleValueHandle
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SubstanceModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.SubstanceModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TerrainModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.TerrainModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TerrainPhysicsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.TerrainPhysicsModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TextCoreModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.TextCoreModule.dll
+ UnityEngine.TextCore.FaceInfo
+ UnityEngine.TextCore.GlyphRect
+ UnityEngine.TextCore.GlyphMetrics
+ UnityEngine.TextCore.Glyph
+ UnityEngine.TextCore.LowLevel.GlyphValueRecord
+ UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord
+ UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TextRenderingModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.TextRenderingModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TilemapModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.TilemapModule.dll
+ UnityEngine.GridBrushBase
+ UnityEngine.Tilemaps.Tile
+ UnityEngine.Tilemaps.TileBase
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UIElementsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UIElementsModule.dll
+ UnityEngine.Internal.Experimental.UIElements.PanelWrapper
+ UnityEngine.Experimental.UIElements.TemplateAsset
+ UnityEngine.Experimental.UIElements.VisualElementAsset
+ UnityEngine.Experimental.UIElements.VisualTreeAsset/UsingEntry
+ UnityEngine.Experimental.UIElements.VisualTreeAsset/SlotDefinition
+ UnityEngine.Experimental.UIElements.VisualTreeAsset/SlotUsageEntry
+ UnityEngine.Experimental.UIElements.VisualTreeAsset
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UIModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UIModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UNETModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UNETModule.dll
+ UnityEngine.Networking.ChannelQOS
+ UnityEngine.Networking.ConnectionConfig
+ UnityEngine.Networking.HostTopology
+ UnityEngine.Networking.GlobalConfig
+ UnityEngine.Networking.Match.JoinMatchResponse
+ UnityEngine.Networking.Match.DropConnectionResponse
+ UnityEngine.Networking.Match.MatchDirectConnectInfo
+ UnityEngine.Networking.Match.MatchDesc
+ UnityEngine.Networking.Match.ListMatchResponse
+ UnityEngine.Networking.Match.NetworkMatch
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityAnalyticsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityAnalyticsModule.dll
+ UnityEngine.Analytics.Analytics/UserInfo
+ UnityEngine.Analytics.Analytics/UserInfoBirthYear
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityConnectModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityConnectModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAudioModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestTextureModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestWWWModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VehiclesModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.VehiclesModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VFXModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.VFXModule.dll
+ UnityEngine.Experimental.VFX.VFXSpawnerCallbacks
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VideoModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.VideoModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VRModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.VRModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.WindModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.WindModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.ScreenCaptureModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.ScreenCaptureModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.XRModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.XRModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.PhysicsModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.PhysicsModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.PerformanceReportingModule.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\UnityEngine.PerformanceReportingModule.dll
Will export symbols of pdb format
Symbols will be read from Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.pdb
Weaving assembly D:\work\sandbox\MrtkBuildTest\Temp\StagingArea\Data\Managed\Microsoft.MixedReality.Toolkit.dll
+ Microsoft.MixedReality.Toolkit.BaseMixedRealityProfile
+ Microsoft.MixedReality.Toolkit.MixedRealityCameraProfile
+ Microsoft.MixedReality.Toolkit.MixedRealityRegisteredServiceProvidersProfile
+ Microsoft.MixedReality.Toolkit.MixedRealityServiceConfiguration
+ Microsoft.MixedReality.Toolkit.MixedRealityToolkitConfigurationProfile
+ Microsoft.MixedReality.Toolkit.MixedRealityToolkit
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.ActivePowerSchemeInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.AdapterInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.ApplicationInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.AvailableWiFiNetworks
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.BatteryInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DeviceInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DeviceOsInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DevicePortalConnections
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DHCPInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.FileInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.FileList
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstalledApps
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InstallStatus
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.InterfaceInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpAddressInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.IpConfigInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.MachineName
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkInterfaces
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.NetworkProfileInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.ProcessInfo
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.ProcessList
+ Microsoft.MixedReality.Toolkit.WindowsDevicePortal.WirelessNetworkInfo
+ Microsoft.MixedReality.Toolkit.Rendering.DepthBufferRenderer
+ Microsoft.MixedReality.Toolkit.Rendering.MaterialInstance
+ Microsoft.MixedReality.Toolkit.Utilities.AnimatorParameter
+ Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/ArticulatedHandPoseItem
+ Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose/ArticulatedHandPoseDictionary
+ Microsoft.MixedReality.Toolkit.Utilities.MixedRealityPose
+ Microsoft.MixedReality.Toolkit.Utilities.SystemType
+ Microsoft.MixedReality.Toolkit.Utilities.Vector3Smoothed
+ Microsoft.MixedReality.Toolkit.Utilities.CameraEventRouter
+ Microsoft.MixedReality.Toolkit.Utilities.BaseMixedRealityLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.BezierDataProvider/BezierPointSet
+ Microsoft.MixedReality.Toolkit.Utilities.BezierDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.BezierInertia
+ Microsoft.MixedReality.Toolkit.Utilities.EllipseLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.ParabolaConstrainedLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.ParabolaLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.ParabolaPhysicalLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.RectangleLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.SimpleLineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.SplineDataProvider
+ Microsoft.MixedReality.Toolkit.Utilities.LineFollower
+ Microsoft.MixedReality.Toolkit.Utilities.BaseMixedRealityLineRenderer
+ Microsoft.MixedReality.Toolkit.Utilities.MeshLineRenderer
+ Microsoft.MixedReality.Toolkit.Utilities.MixedRealityLineRenderer
+ Microsoft.MixedReality.Toolkit.Utilities.ParticleSystemLineRenderer
+ Microsoft.MixedReality.Toolkit.Utilities.StripMeshLineRenderer
+ Microsoft.MixedReality.Toolkit.Utilities.MaintainBorderLightWidth
+ Microsoft.MixedReality.Toolkit.Utilities.BaseMeshOutline
+ Microsoft.MixedReality.Toolkit.Utilities.ClippingBox
+ Microsoft.MixedReality.Toolkit.Utilities.ClippingPlane
+ Microsoft.MixedReality.Toolkit.Utilities.ClippingPrimitive
+ Microsoft.MixedReality.Toolkit.Utilities.ClippingSphere
+ Microsoft.MixedReality.Toolkit.Utilities.HoverLight
+ Microsoft.MixedReality.Toolkit.Utilities.MeshOutline
+ Microsoft.MixedReality.Toolkit.Utilities.MeshOutlineHierarchy
+ Microsoft.MixedReality.Toolkit.Utilities.MeshSmoother
+ Microsoft.MixedReality.Toolkit.Utilities.ProximityLight/LightSettings
+ Microsoft.MixedReality.Toolkit.Utilities.ProximityLight
+ Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorFieldData
+ Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorPropertySetting
+ Microsoft.MixedReality.Toolkit.Utilities.Facades.ServiceFacade
+ Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystemProfile/CachedLightingSettings
+ Microsoft.MixedReality.Toolkit.SceneSystem.MixedRealitySceneSystemProfile
+ Microsoft.MixedReality.Toolkit.SceneSystem.RuntimeLightingSettings
+ Microsoft.MixedReality.Toolkit.SceneSystem.RuntimeRenderSettings
+ Microsoft.MixedReality.Toolkit.SceneSystem.RuntimeSunlightSettings
+ Microsoft.MixedReality.Toolkit.SceneSystem.SceneInfo
+ Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialObserverConfiguration
+ Microsoft.MixedReality.Toolkit.SpatialAwareness.BaseSpatialAwarenessObserverProfile
+ Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessMeshObserverProfile
+ Microsoft.MixedReality.Toolkit.SpatialAwareness.MixedRealitySpatialAwarenessSystemProfile
+ Microsoft.MixedReality.Toolkit.Diagnostics.MixedRealityDiagnosticsProfile
+ Microsoft.MixedReality.Toolkit.CameraSystem.BaseCameraSettingsProfile
+ Microsoft.MixedReality.Toolkit.CameraSystem.MixedRealityCameraSettingsConfiguration
+ Microsoft.MixedReality.Toolkit.Boundary.MixedRealityBoundaryVisualizationProfile
+ Microsoft.MixedReality.Toolkit.Physics.RayStep
+ Microsoft.MixedReality.Toolkit.Physics.Distorter
+ Microsoft.MixedReality.Toolkit.Physics.DistorterBulge
+ Microsoft.MixedReality.Toolkit.Physics.DistorterGravity
+ Microsoft.MixedReality.Toolkit.Physics.DistorterSimplex
+ Microsoft.MixedReality.Toolkit.Physics.DistorterSphere
+ Microsoft.MixedReality.Toolkit.Physics.DistorterWiggly
+ Microsoft.MixedReality.Toolkit.Physics.GazeStabilizer
+ Microsoft.MixedReality.Toolkit.Physics.Interpolator
+ Microsoft.MixedReality.Toolkit.Input.MixedRealityContro<message truncated>
@keveleigh @wiwei any ideas?
@tarukosu. Thank you for the report. We are actively investigating this.
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
This issue does not occur in MRTK v2.4.