Skip to content

Commit 1c36bc0

Browse files
committed
Fixed polyfill for TypeBuilder.CreateType (pythonnet#1261)
pythonnet#1228
1 parent 0442057 commit 1c36bc0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/Python.Runtime.15.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
7979
<PackageReference Include="System.Security.Permissions" Version="4.4.0" />
80-
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
80+
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
8181
</ItemGroup>
8282

8383
<ItemGroup>

src/runtime/polyfill/ReflectionPolifills.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static AssemblyBuilder DefineDynamicAssembly(this AppDomain appDomain, As
1616

1717
public static Type CreateType(this TypeBuilder typeBuilder)
1818
{
19-
return typeBuilder.GetTypeInfo().GetType();
19+
return typeBuilder.CreateTypeInfo();
2020
}
2121
#endif
2222
#if NETFX

0 commit comments

Comments
 (0)