File tree 1 file changed +9
-2
lines changed
src/10 Core/Signals.Core/Configuration/Bootstrapping
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,20 @@ internal virtual IServiceContainer Resolve(ConfigurationBootstrapper configurati
231
231
}
232
232
233
233
this . D ( "Loading all types under Signals.* namespace." ) ;
234
- _allTypes = scanAssemblies . SelectMany (
234
+
235
+ // fix for NET8: https://github.com/dotnet/SqlClient/issues/1930
236
+ #if NET8_0
237
+ scanAssemblies = scanAssemblies . Where ( x => ! x . Location . Contains ( "System.Data.SqlClient.dll" ) ) . ToArray ( ) ;
238
+ #endif
239
+
240
+ _allTypes = scanAssemblies . SelectMany (
235
241
assembly => assembly . LoadAllTypesFromAssembly ( )
236
242
. Where ( type => type != null &&
237
243
! string . IsNullOrEmpty ( type . FullName ) &&
238
244
type . FullName . StartsWith ( "Signals" ) ) )
239
245
. ToList ( ) ;
240
- this . D ( $ "Total { _allTypes . Count } types under Signals has been loaded.") ;
246
+
247
+ this . D ( $ "Total { _allTypes . Count } types under Signals has been loaded.") ;
241
248
242
249
config . JsonSerializerSettings = ( ) => JsonSerializerSettings ;
243
250
this . D ( "Set default JsonSerializerSettings." ) ;
You can’t perform that action at this time.
0 commit comments