Skip to content

Commit acea420

Browse files
fix: Changed to use .GetExportedTypes instead of .GetTypes.
This is a workaround for an issue in System.Data which throws a "Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.6.1.5, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field. Reference: dotnet/SqlClient#1930
1 parent 391111f commit acea420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nucleus.Web/Controllers/Setup/SiteWizardController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ private static Type[] GetTypes(System.Reflection.Assembly assembly)
930930
{
931931
try
932932
{
933-
return assembly.GetTypes();
933+
return assembly.GetExportedTypes();
934934
}
935935
catch (System.Reflection.ReflectionTypeLoadException)
936936
{

0 commit comments

Comments
 (0)