[change] AssemblyResolver also resolves `*.dll.bytes` files besides `*.dll`.
parent
31be818bb6
commit
52f25bdb2a
|
|
@ -29,6 +29,12 @@ namespace HybridCLR.Editor.Meta
|
||||||
Debug.Log($"[FixedSetAssemblyResolver] resolve:{assemblyName} path:{assemblyPath}");
|
Debug.Log($"[FixedSetAssemblyResolver] resolve:{assemblyName} path:{assemblyPath}");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
assemblyPath = $"{_rootDir}/{assemblyName}.dll.bytes";
|
||||||
|
if (File.Exists(assemblyPath))
|
||||||
|
{
|
||||||
|
Debug.Log($"[FixedSetAssemblyResolver] resolve:{assemblyName} path:{assemblyPath}");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
assemblyPath = null;
|
assemblyPath = null;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,16 @@ namespace HybridCLR.Editor.Meta
|
||||||
{
|
{
|
||||||
foreach(var path in _searchPaths)
|
foreach(var path in _searchPaths)
|
||||||
{
|
{
|
||||||
string assPath = Path.Combine(path, assemblyName + ".dll");
|
assemblyPath = Path.Combine(path, $"{assemblyName}.dll");
|
||||||
if (File.Exists(assPath))
|
if (File.Exists(assemblyPath))
|
||||||
{
|
{
|
||||||
Debug.Log($"resolve {assemblyName} at {assPath}");
|
Debug.Log($"resolve {assemblyName} at {assemblyPath}");
|
||||||
assemblyPath = assPath;
|
return true;
|
||||||
|
}
|
||||||
|
assemblyPath = Path.Combine(path, $"{assemblyName}.dll.bytes");
|
||||||
|
if (File.Exists(assemblyPath))
|
||||||
|
{
|
||||||
|
Debug.Log($"resolve {assemblyName} at {assemblyPath}");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue