Skip to content

Commit 825a49c

Browse files
authored
Merge pull request #1 from ElderJames/master
适配NetStandard2.0
2 parents 0b54e83 + 4bcd56a commit 825a49c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

WebApiClient/Internal/ProxyGenerator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ private static Type ImplementApiMethods(TypeBuilder typeBuilder, MethodInfo[] ap
167167
}
168168
apiMethodIL.Emit(OpCodes.Ret);
169169
}
170+
#if NETSTANDARD2_0
171+
return typeBuilder.CreateTypeInfo();
172+
#else
170173
return typeBuilder.CreateType();
174+
#endif
171175
}
172176
}
173177
}

WebApiClient/WebApiClient.csproj

460 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)