Closed
Description
Tried VS for Mac on Catalina and VS2019 on Windows 10. In both cases there's same CS1069 build error.
Tried running my code from inside the console app and command line. NET472 and Core 3.1 DryJobs worked fine on windows.
Here's the benchmark code:
[DisassemblyDiagnoser]
[KeepBenchmarkFiles]
[DryJob(BenchmarkDotNet.Jobs.RuntimeMoniker.Mono)]
public class Program
{
static void Main()
{
var config = DefaultConfig.Instance.With(ConfigOptions.DisableOptimizationsValidator);
BenchmarkRunner.Run<Program>(config);
}
...
[Benchmark]
public void RunFloat32()
{
var res = c.RunXops(1000000000, false, false);
}
[Benchmark]
public void RunIntt32()
{
var res = c.RunXops(1000000000, false, false);
}
}
And that's the output (just the top of the file).
// Validating benchmarks:
// ***** BenchmarkRunner: Start *****
// ***** Found 2 benchmark(s) in total *****
// ***** Building 1 exe(s) in Parallel: Start *****
BuildScript: /Users/user/Projects/Console/Console/bin/Debug/netcoreapp3.1/Dry-Mono.sh
// ***** Done, took 00:00:01 (1.32 sec) *****
// Found 2 benchmarks:
// Program.RunFloat32: Dry-Mono(Runtime=Mono, IterationCount=1, LaunchCount=1, RunStrategy=ColdStart, UnrollFactor=1, WarmupCount=1)
// Program.RunIntt32: Dry-Mono(Runtime=Mono, IterationCount=1, LaunchCount=1, RunStrategy=ColdStart, UnrollFactor=1, WarmupCount=1)
// Build Error: The build has failed!
CS1069: The type name 'File' could not be found in the namespace 'System.IO'. This type has been forwarded to assembly 'System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
// Build Error: The build has failed!
CS1069: The type name 'File' could not be found in the namespace 'System.IO'. This type has been forwarded to assembly 'System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
Metadata
Metadata
Assignees
Labels
No labels