mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Fix type resolution in Asm markup loader
This commit is contained in:
@@ -66,7 +66,7 @@ internal class AsmMarkupLoader
|
|||||||
var typeName = qualifiedName.TypeName;
|
var typeName = qualifiedName.TypeName;
|
||||||
var result = FindDependency(qualifiedName.NamespacePrefix);
|
var result = FindDependency(qualifiedName.NamespacePrefix);
|
||||||
|
|
||||||
return result.ExportTable.Where(e => e.Name == typeName).FirstOrDefault()
|
return result.FindType(typeName)
|
||||||
?? throw new Exception($"No type with the name '{typeName}' was exported from {result.Uri}");
|
?? throw new Exception($"No type with the name '{typeName}' was exported from {result.Uri}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user