File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Runtime . InteropServices ;
23using KellermanSoftware . CompareNetObjects . TypeComparers ;
34
45
@@ -51,7 +52,10 @@ private static RootComparer BuildRootComparer()
5152 _rootComparer . TypeComparers . Add ( new RuntimeTypeComparer ( _rootComparer ) ) ;
5253
5354#if ! NETSTANDARD
54- _rootComparer . TypeComparers . Add ( new FontComparer ( _rootComparer ) ) ;
55+ #if NET6_0_OR_GREATER
56+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
57+ #endif
58+ _rootComparer . TypeComparers . Add ( new FontComparer ( _rootComparer ) ) ;
5559 _rootComparer . TypeComparers . Add ( new DatasetComparer ( _rootComparer ) ) ;
5660 _rootComparer . TypeComparers . Add ( new DataTableComparer ( _rootComparer ) ) ;
5761 _rootComparer . TypeComparers . Add ( new DataRowComparer ( _rootComparer ) ) ;
@@ -82,4 +86,4 @@ private static RootComparer BuildRootComparer()
8286 }
8387 #endregion
8488 }
85- }
89+ }
You can’t perform that action at this time.
0 commit comments