From d50064eda369464c620bd2e166451ab03861dab2 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Sat, 17 Jan 2026 02:40:18 +0900 Subject: [PATCH] fix: resolve DLL conflicts with com.unity.ai.assistant package v1.5.0-pre.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set overrideReferences to true and explicitly specify all required precompiled references to use correct DLL versions from Assets/Packages instead of conflicting versions from com.unity.ai.assistant. This fixes compilation errors where System.Text.Json and Microsoft.Bcl.AsyncInterfaces from com.unity.ai.assistant were being loaded instead of the expected versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../Editor/UnityNaturalMCP.Editor.asmdef | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/UnityNaturalMCPServer/Editor/UnityNaturalMCP.Editor.asmdef b/UnityNaturalMCPServer/Editor/UnityNaturalMCP.Editor.asmdef index 7a60a10..7ee38d3 100644 --- a/UnityNaturalMCPServer/Editor/UnityNaturalMCP.Editor.asmdef +++ b/UnityNaturalMCPServer/Editor/UnityNaturalMCP.Editor.asmdef @@ -9,10 +9,33 @@ ], "excludePlatforms": [], "allowUnsafeCode": false, - "overrideReferences": false, - "precompiledReferences": [], + "overrideReferences": true, + "precompiledReferences": [ + "Microsoft.Bcl.AsyncInterfaces.dll", + "Microsoft.Bcl.Memory.dll", + "Microsoft.Extensions.AI.Abstractions.dll", + "Microsoft.Extensions.Configuration.Abstractions.dll", + "Microsoft.Extensions.DependencyInjection.dll", + "Microsoft.Extensions.DependencyInjection.Abstractions.dll", + "Microsoft.Extensions.Diagnostics.Abstractions.dll", + "Microsoft.Extensions.FileProviders.Abstractions.dll", + "Microsoft.Extensions.Hosting.Abstractions.dll", + "Microsoft.Extensions.Logging.Abstractions.dll", + "Microsoft.Extensions.Options.dll", + "Microsoft.Extensions.Primitives.dll", + "ModelContextProtocol.dll", + "ModelContextProtocol.Core.dll", + "System.ComponentModel.Annotations.dll", + "System.Diagnostics.DiagnosticSource.dll", + "System.IO.Pipelines.dll", + "System.Net.ServerSentEvents.dll", + "System.Runtime.CompilerServices.Unsafe.dll", + "System.Text.Encodings.Web.dll", + "System.Text.Json.dll", + "System.Threading.Channels.dll" + ], "autoReferenced": true, "defineConstraints": [], "versionDefines": [], "noEngineReferences": false -} \ No newline at end of file +}