Skip to content

Commit fd18a84

Browse files
peterhelPeter
authored and
Peter
committed
Update TypeSourceSelector.cs
dotnet/SqlClient#1930 > I had the same issue here. After changing to GetExportedTypes() seems to fix the issue
1 parent 28c9d1d commit fd18a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scrutor/TypeSourceSelector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private IImplementationTypeSelector InternalFromAssembliesOf(IEnumerable<Type> t
154154

155155
private IImplementationTypeSelector InternalFromAssemblies(IEnumerable<Assembly> assemblies)
156156
{
157-
return AddSelector(assemblies.SelectMany(asm => asm.DefinedTypes).Select(x => x.AsType()));
157+
return AddSelector(assemblies.SelectMany(asm => asm.ExportedTypes);
158158
}
159159

160160
private static IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames)

0 commit comments

Comments
 (0)