public AssemblyDefinition Resolve(IMetadataScope scope) { AssemblyNameReference reference = GetReference(scope); try { AssemblyDefinition assembly = _resolver.Resolve(reference, _readerParameters); return(assembly); } catch (Exception e) when(!(e is AssemblyResolutionException)) { throw new AssemblyResolutionException(reference, e); } }
public AssemblyDefinition Resolve(IMetadataScope scope) { AssemblyNameReference reference = GetReference(scope); AssemblyDefinition assembly = _resolver.Resolve(reference, _readerParameters); if (SeenFirstTime(assembly)) { SafeReadSymbols(assembly); SetAction(assembly); } return(assembly); }
public AssemblyDefinition Resolve(IMetadataScope scope) { AssemblyNameReference reference = GetReference(scope); try { AssemblyDefinition assembly = _resolver.Resolve(reference, _readerParameters); if (assembly != null) { RegisterAssembly(assembly); } return(assembly); } catch (Exception e) { throw new AssemblyResolutionException(reference, e); } }
public AssemblyDefinition Resolve(IMetadataScope scope) { AssemblyNameReference reference = GetReference(scope); try { AssemblyDefinition assembly = _resolver.Resolve(reference, _readerParameters); if (assembly != null && SeenFirstTime(assembly)) { SafeReadSymbols(assembly); SetAction(assembly); } return(assembly); } catch (Exception e) { throw new AssemblyResolutionException(reference, e); } }
public AssemblyDefinition TryResolve(AssemblyNameReference name) { return(_resolver.Resolve(name, probing: true)); }