嗨,我有一个带有基准测试的简单dotnet核心项目。但是当使用基准测试时,我收到Access拒绝异常。
错误-访问路径“ D:\ System Volume Information”被拒绝
删除基准测试不会出错
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace MyBenchmarks
{
[ClrJob(baseline: true), CoreJob, MonoJob, CoreRtJob]
public class MyTest
{
[Benchmark]
public void myprint()
{
Console.WriteLine("hi");
}
}
public class Program
{
public static void Main(string[] args)
{
var summary = BenchmarkRunner.Run<MyTest>();
}
}
}