[fix] 修复 UnityPluginAssemblyResolver 扫描dll时,失误扫描了非Plugins dll的bug

main
walon 2022-09-27 16:12:34 +08:00
parent cd68f33161
commit 62bf4c2847
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ namespace HybridCLR.Editor.Meta
{
foreach(var dll in Directory.GetFiles(UnityEngine.Application.dataPath, "*.dll", SearchOption.AllDirectories))
{
if (Path.GetFileNameWithoutExtension(dll) == assemblyName)
if (Path.GetFileNameWithoutExtension(dll) == assemblyName && dll.Contains("Plugins"))
{
Debug.Log($"plugin:{dll}");
return dll;

View File

@ -1,6 +1,6 @@
{
"name": "com.focus-creative-games.hybridclr_unity",
"version": "0.3.1",
"version": "0.3.2",
"displayName": "HybridCLR",
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
"category": "Runtime",