Fix loading xml docs for assembly

This commit is contained in:
Wojtek Figat
2023-01-25 19:52:06 +01:00
parent f5a37ec3b4
commit 0847ccc360
2 changed files with 15 additions and 11 deletions

View File

@@ -235,12 +235,11 @@ namespace FlaxEngine
public static string GetAssemblyLocation(Assembly assembly)
{
#if USE_NETCORE
if (!string.IsNullOrEmpty(assembly.Location))
return assembly.Location;
if (NativeInterop.AssemblyLocations.TryGetValue(assembly.FullName, out string assemblyLocation))
return assemblyLocation;
var location = assembly.Location;
if (!string.IsNullOrEmpty(location))
return location;
if (NativeInterop.AssemblyLocations.TryGetValue(assembly.FullName, out location))
return location;
return null;
#else
return assembly.Location;