Skip to content

Commit

Permalink
Add Unsafe assembly to Roslyn Generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed May 27, 2023
1 parent 40a1c2b commit 149ea7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BenchmarkDotNet/Toolchains/Roslyn/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Extensions;
using BenchmarkDotNet.Portability;
using BenchmarkDotNet.Running;
Expand Down Expand Up @@ -56,7 +57,8 @@ internal static IEnumerable<Assembly> GetAllReferences(BenchmarkCase benchmarkCa
new[]
{
benchmarkCase.Descriptor.Type.GetTypeInfo().Assembly, // this assembly does not has to have a reference to BenchmarkDotNet (e.g. custom framework for benchmarking that internally uses BenchmarkDotNet
typeof(BenchmarkCase).Assembly // BenchmarkDotNet
typeof(BenchmarkCase).Assembly, // BenchmarkDotNet
typeof(Unsafe).Assembly // Unsafe
})
.Distinct();
}
Expand Down

0 comments on commit 149ea7a

Please sign in to comment.