Пример #1
0
        private static IConfig Create()
        {
            var net472 = Job.Default.WithRuntime(ClrRuntime.Net472).WithDefault().AsBaseline();
            var core21 = Job.Default.WithRuntime(CoreRuntime.Core21).WithDefault();
            var core31 = Job.Default.WithRuntime(CoreRuntime.Core31).WithDefault();
            var net50  = Job.Default.WithRuntime(CoreRuntime.CreateForNewVersion("net5.0", "NET 5.0")).WithDefault();

            return(new ManualConfig()
                   .AddLogger(DefaultConfig.Instance.GetLoggers().ToArray())
                   .AddAnalyser(DefaultConfig.Instance.GetAnalysers().ToArray())
                   .AddValidator(DefaultConfig.Instance.GetValidators().ToArray())
                   .AddColumnProvider(DefaultConfig.Instance.GetColumnProviders().Select(p => new FilteredColumnProvider(p)).ToArray())
                   .WithOptions(ConfigOptions.DisableLogFile)
                   .AddExporter(MarkdownExporter.GitHub)
                   .AddDiagnoser(MemoryDiagnoser.Default)
                   .WithArtifactsPath(@"..\..\..")
                   .AddJob(net472, core21, core31, net50));
        }
Пример #2
0
        private static IConfig Create()
        {
            var net472 = Job.Default.WithRuntime(ClrRuntime.Net472).WithDefault().AsBaseline();
            var core21 = Job.Default.WithRuntime(CoreRuntime.Core21).WithDefault();
            var core31 = Job.Default.WithRuntime(CoreRuntime.Core31).WithDefault();

            // TODO: workaround, remove after BDN update released
            //var net50  = Job.Default.WithRuntime(CoreRuntime.CreateForNewVersion("net5.0", ".NET 5.0")).WithDefault();
            var net50 = Job.Default.WithRuntime(CoreRuntime.CreateForNewVersion("netcoreapp5.0", ".NET 5.0")).WithDefault();

            return(new ManualConfig()
                   .AddLogger(DefaultConfig.Instance.GetLoggers().ToArray())
                   .AddAnalyser(DefaultConfig.Instance.GetAnalysers().ToArray())
                   .AddValidator(DefaultConfig.Instance.GetValidators().ToArray())
                   .AddColumnProvider(DefaultConfig.Instance.GetColumnProviders().Select(p => new FilteredColumnProvider(p)).ToArray())
                   .WithOptions(ConfigOptions.DisableLogFile)
                   .AddExporter(MarkdownExporter.GitHub)
                   .AddDiagnoser(MemoryDiagnoser.Default)
                   .WithArtifactsPath(@"..\..\..")
                   // disable 2.1/3.1 for now to save time
                   .AddJob(net472 /*, core21*/, core31, net50));
        }