Skip to content

Commit

Permalink
Update TypeSourceSelector.cs
Browse files Browse the repository at this point in the history
dotnet/SqlClient#1930

> I had the same issue here. After changing to GetExportedTypes() seems to fix the issue
  • Loading branch information
peterhel authored Sep 13, 2024
1 parent 28c9d1d commit 3ec0712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scrutor/TypeSourceSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private IImplementationTypeSelector InternalFromAssembliesOf(IEnumerable<Type> t

private IImplementationTypeSelector InternalFromAssemblies(IEnumerable<Assembly> assemblies)
{
return AddSelector(assemblies.SelectMany(asm => asm.DefinedTypes).Select(x => x.AsType()));
return AddSelector(assemblies.SelectMany(asm => asm.ExportedTypes);

Check failure on line 157 in src/Scrutor/TypeSourceSelector.cs

View workflow job for this annotation

GitHub Actions / build

) expected

Check failure on line 157 in src/Scrutor/TypeSourceSelector.cs

View workflow job for this annotation

GitHub Actions / build

) expected

Check failure on line 157 in src/Scrutor/TypeSourceSelector.cs

View workflow job for this annotation

GitHub Actions / build

) expected

Check failure on line 157 in src/Scrutor/TypeSourceSelector.cs

View workflow job for this annotation

GitHub Actions / build

) expected
}

private static IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames)
Expand Down

0 comments on commit 3ec0712

Please sign in to comment.