[fix] 修复扫描Plugin assembly时未忽略~结尾的目录的bug

main 0.10.5
walon 2022-11-18 19:38:21 +08:00
parent 429845bf9e
commit b9ea9b21f3
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ namespace HybridCLR.Editor.Meta
private bool IsPluginDll(string dllPath)
{
var fileOrDirs = new HashSet<string>(dllPath.Split('\\', '/'));
return !fileOrDirs.Intersect(s_ignoreDirs).Any();
return !fileOrDirs.Any(dir => dir.EndsWith("~")) && !fileOrDirs.Intersect(s_ignoreDirs).Any();
}
public string ResolveAssembly(string assemblyName, bool throwExIfNotFind)

View File

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