[fix] 修复生成桥接函数时不必要地多次调用 CleanIl2CppBuildCache,并有可能因并发清除而抛出异常的问题

main
walon 2022-12-08 22:19:27 +08:00
parent 419c3a98f6
commit 0edd822101
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,6 @@ namespace HybridCLR.Editor.Commands
g.PrepareMethods(); g.PrepareMethods();
g.Generate(); g.Generate();
Debug.LogFormat("== output:{0} ==", outputFile); Debug.LogFormat("== output:{0} ==", outputFile);
CleanIl2CppBuildCache();
} }
[MenuItem("HybridCLR/Generate/MethodBridge", priority = 101)] [MenuItem("HybridCLR/Generate/MethodBridge", priority = 101)]
@ -92,6 +91,7 @@ namespace HybridCLR.Editor.Commands
Task.WaitAll(tasks.ToArray()); Task.WaitAll(tasks.ToArray());
} }
CleanIl2CppBuildCache();
} }
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "com.focus-creative-games.hybridclr_unity", "name": "com.focus-creative-games.hybridclr_unity",
"version": "1.1.8", "version": "1.1.9",
"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",