@@ -126,8 +126,8 @@ private static void AppendNativeInterop(CodeBuilder codeBuilder, NativeInteropIn
126126 {
127127 var useInstance = info . HasInstance && method . UsesInstance ;
128128
129- if ( method . OnlySupportedInNetstandard21 )
130- codeBuilder . AppendLine ( "#if NETSTANDARD2_1 " ) ;
129+ if ( method . NotSupportedInNetstandard20 )
130+ codeBuilder . AppendLine ( "#if !NETSTANDARD2_0 " ) ;
131131
132132 codeBuilder . Append ( "[DllImport(NativeLibrary." ) ;
133133 codeBuilder . Append ( name ) ;
@@ -173,7 +173,7 @@ private static void AppendNativeInterop(CodeBuilder codeBuilder, NativeInteropIn
173173 codeBuilder . Append ( ")" ) ;
174174 codeBuilder . AppendLine ( ";" ) ;
175175
176- if ( method . OnlySupportedInNetstandard21 )
176+ if ( method . NotSupportedInNetstandard20 )
177177 codeBuilder . AppendLine ( "#endif" ) ;
178178 }
179179
@@ -269,8 +269,8 @@ private static void AppendNativeClassInstanceMethods(CodeBuilder codeBuilder, Na
269269 private static void AppendNativeMethod ( CodeBuilder codeBuilder , NativeInteropInfo info , MethodInfo method )
270270 {
271271 codeBuilder . AppendLine ( ) ;
272- if ( method . OnlySupportedInNetstandard21 )
273- codeBuilder . AppendLine ( "#if NETSTANDARD2_1 " ) ;
272+ if ( method . NotSupportedInNetstandard20 )
273+ codeBuilder . AppendLine ( "#if !NETSTANDARD2_0 " ) ;
274274
275275 codeBuilder . Append ( "public " ) ;
276276 if ( method . IsStatic )
@@ -471,7 +471,7 @@ private static void AppendNativeMethod(CodeBuilder codeBuilder, NativeInteropInf
471471
472472 codeBuilder . AppendCloseBrace ( ) ;
473473
474- if ( method . OnlySupportedInNetstandard21 )
474+ if ( method . NotSupportedInNetstandard20 )
475475 codeBuilder . AppendLine ( "#endif" ) ;
476476 }
477477
0 commit comments