[fix] 修复 UnityPluginAssemblyResolver 扫描dll时,失误扫描了非Plugins dll的bug
parent
cd68f33161
commit
62bf4c2847
|
@ -15,7 +15,7 @@ namespace HybridCLR.Editor.Meta
|
||||||
{
|
{
|
||||||
foreach(var dll in Directory.GetFiles(UnityEngine.Application.dataPath, "*.dll", SearchOption.AllDirectories))
|
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}");
|
Debug.Log($"plugin:{dll}");
|
||||||
return dll;
|
return dll;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.focus-creative-games.hybridclr_unity",
|
"name": "com.focus-creative-games.hybridclr_unity",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"displayName": "HybridCLR",
|
"displayName": "HybridCLR",
|
||||||
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
|
||||||
"category": "Runtime",
|
"category": "Runtime",
|
||||||
|
|
Loading…
Reference in New Issue