Skip to content

Commit

Permalink
Merge pull request #246 from 0x0ade/dmd-ownertype
Browse files Browse the repository at this point in the history
Set DynamicMethodDefinition.OwnerType
  • Loading branch information
pardeike committed Feb 3, 2020
2 parents 80e2225 + 3301b85 commit 24aa6e2
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 24aa6e2

Please sign in to comment.