Skip to content

Commit

Permalink
Update MonoMod.Common, set DynamicMethodDefinition.OwnerType
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ade committed Feb 3, 2020
1 parent 80e2225 commit 3301b85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Harmony/Harmony.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

<ItemGroup>
<!-- https://dev.azure.com/MonoMod/MonoMod/_packaging?_a=feed&feed=DevBuilds -->
<PackageReference Include="MonoMod.Common" Version="20.2.1.1" PrivateAssets="All" />
<PackageReference Include="MonoMod.Common" Version="20.2.2.1" PrivateAssets="All" />
<PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" PrivateAssets="All" />
</ItemGroup>

Expand Down
5 changes: 4 additions & 1 deletion Harmony/Internal/MethodPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ internal static DynamicMethodDefinition CreateDynamicMethod(MethodBase original,
patchName,
returnType,
parameterTypes.ToArray()
);
)
{
OwnerType = original.DeclaringType
};

#if NETSTANDARD2_0 || NETCOREAPP2_0
#else
Expand Down
2 changes: 1 addition & 1 deletion HarmonyTests/HarmonyTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MonoMod.Common" Version="20.2.1.1" PrivateAssets="All" />
<PackageReference Include="MonoMod.Common" Version="20.2.2.1" PrivateAssets="All" />
</ItemGroup>

<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
Expand Down

0 comments on commit 3301b85

Please sign in to comment.