Skip to content

Commit

Permalink
Allow reflecting on DebuggableAttribute on CoreRT (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored and adamsitnik committed Feb 8, 2019
1 parent 20744ea commit 190b9be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BenchmarkDotNet/Toolchains/CoreRt/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ private string GenerateProjectForLocalBuild(BuildPartition buildPartition, Artif
</Project>";

/// <summary>
/// mandatory to make it possible ot call GC.GetAllocatedBytesForCurrentThread() using reflection (not part of .NET Standard)
/// mandatory to make it possible to call GC.GetAllocatedBytesForCurrentThread() using reflection (not part of .NET Standard)
/// and DebuggableAttribute.
/// </summary>
private void GenerateReflectionFile(ArtifactsPaths artifactsPaths)
{
Expand All @@ -184,6 +185,7 @@ private void GenerateReflectionFile(ArtifactsPaths artifactsPaths)
<Application>
<Assembly Name=""System.Runtime"">
<Type Name=""System.GC"" Dynamic=""Required All"" />
<Type Name=""System.Diagnostics.DebuggableAttribute"" Dynamic=""Required All"" />
</Assembly>
</Application>
</Directives>
Expand All @@ -192,4 +194,4 @@ private void GenerateReflectionFile(ArtifactsPaths artifactsPaths)
File.WriteAllText(Path.Combine(Path.GetDirectoryName(artifactsPaths.ProjectFilePath), "rd.xml"), content);
}
}
}
}

0 comments on commit 190b9be

Please sign in to comment.