Skip to content

Commit 3357418

Browse files
committed
Use _
1 parent 0739eb9 commit 3357418

File tree

15 files changed

+50
-50
lines changed

15 files changed

+50
-50
lines changed

src/BenchmarkDotNet.Annotations/Jobs/RuntimeMoniker.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public enum RuntimeMoniker
118118
/// <summary>
119119
/// .NET 10.0
120120
/// </summary>
121-
Net100,
121+
Net10_0,
122122

123123
/// <summary>
124124
/// NativeAOT compiled as net6.0
@@ -143,7 +143,7 @@ public enum RuntimeMoniker
143143
/// <summary>
144144
/// NativeAOT compiled as net10.0
145145
/// </summary>
146-
NativeAot100,
146+
NativeAot10_0,
147147

148148
/// <summary>
149149
/// WebAssembly with default .Net version
@@ -178,7 +178,7 @@ public enum RuntimeMoniker
178178
/// <summary>
179179
/// WebAssembly with net10.0
180180
/// </summary>
181-
WasmNet100,
181+
WasmNet10_0,
182182

183183
/// <summary>
184184
/// Mono with the Ahead of Time LLVM Compiler backend
@@ -208,7 +208,7 @@ public enum RuntimeMoniker
208208
/// <summary>
209209
/// Mono with the Ahead of Time LLVM Compiler backend and net10.0
210210
/// </summary>
211-
MonoAOTLLVMNet100,
211+
MonoAOTLLVMNet10_0,
212212

213213
/// <summary>
214214
/// .NET 6 using MonoVM (not CLR which is the default)
@@ -233,6 +233,6 @@ public enum RuntimeMoniker
233233
/// <summary>
234234
/// .NET 10 using MonoVM (not CLR which is the default)
235235
/// </summary>
236-
Mono100,
236+
Mono10_0,
237237
}
238238
}

src/BenchmarkDotNet.Diagnostics.dotMemory/DotMemoryDiagnoser.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,32 +81,32 @@ internal override bool IsSupported(RuntimeMoniker runtimeMoniker)
8181
case RuntimeMoniker.Net70:
8282
case RuntimeMoniker.Net80:
8383
case RuntimeMoniker.Net90:
84-
case RuntimeMoniker.Net100:
84+
case RuntimeMoniker.Net10_0:
8585
return true;
8686
case RuntimeMoniker.NotRecognized:
8787
case RuntimeMoniker.Mono:
8888
case RuntimeMoniker.NativeAot60:
8989
case RuntimeMoniker.NativeAot70:
9090
case RuntimeMoniker.NativeAot80:
9191
case RuntimeMoniker.NativeAot90:
92-
case RuntimeMoniker.NativeAot100:
92+
case RuntimeMoniker.NativeAot10_0:
9393
case RuntimeMoniker.Wasm:
9494
case RuntimeMoniker.WasmNet50:
9595
case RuntimeMoniker.WasmNet60:
9696
case RuntimeMoniker.WasmNet70:
9797
case RuntimeMoniker.WasmNet80:
9898
case RuntimeMoniker.WasmNet90:
99-
case RuntimeMoniker.WasmNet100:
99+
case RuntimeMoniker.WasmNet10_0:
100100
case RuntimeMoniker.MonoAOTLLVM:
101101
case RuntimeMoniker.MonoAOTLLVMNet60:
102102
case RuntimeMoniker.MonoAOTLLVMNet70:
103103
case RuntimeMoniker.MonoAOTLLVMNet80:
104104
case RuntimeMoniker.MonoAOTLLVMNet90:
105-
case RuntimeMoniker.MonoAOTLLVMNet100:
105+
case RuntimeMoniker.MonoAOTLLVMNet10_0:
106106
case RuntimeMoniker.Mono60:
107107
case RuntimeMoniker.Mono70:
108108
case RuntimeMoniker.Mono80:
109-
case RuntimeMoniker.Mono100:
109+
case RuntimeMoniker.Mono10_0:
110110
case RuntimeMoniker.Mono90:
111111
#pragma warning disable CS0618 // Type or member is obsolete
112112
case RuntimeMoniker.NetCoreApp50:

src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoser.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,33 +84,33 @@ internal override bool IsSupported(RuntimeMoniker runtimeMoniker)
8484
case RuntimeMoniker.Net70:
8585
case RuntimeMoniker.Net80:
8686
case RuntimeMoniker.Net90:
87-
case RuntimeMoniker.Net100:
87+
case RuntimeMoniker.Net10_0:
8888
return true;
8989
case RuntimeMoniker.NotRecognized:
9090
case RuntimeMoniker.Mono:
9191
case RuntimeMoniker.NativeAot60:
9292
case RuntimeMoniker.NativeAot70:
9393
case RuntimeMoniker.NativeAot80:
9494
case RuntimeMoniker.NativeAot90:
95-
case RuntimeMoniker.NativeAot100:
95+
case RuntimeMoniker.NativeAot10_0:
9696
case RuntimeMoniker.Wasm:
9797
case RuntimeMoniker.WasmNet50:
9898
case RuntimeMoniker.WasmNet60:
9999
case RuntimeMoniker.WasmNet70:
100100
case RuntimeMoniker.WasmNet80:
101101
case RuntimeMoniker.WasmNet90:
102-
case RuntimeMoniker.WasmNet100:
102+
case RuntimeMoniker.WasmNet10_0:
103103
case RuntimeMoniker.MonoAOTLLVM:
104104
case RuntimeMoniker.MonoAOTLLVMNet60:
105105
case RuntimeMoniker.MonoAOTLLVMNet70:
106106
case RuntimeMoniker.MonoAOTLLVMNet80:
107107
case RuntimeMoniker.MonoAOTLLVMNet90:
108-
case RuntimeMoniker.MonoAOTLLVMNet100:
108+
case RuntimeMoniker.MonoAOTLLVMNet10_0:
109109
case RuntimeMoniker.Mono60:
110110
case RuntimeMoniker.Mono70:
111111
case RuntimeMoniker.Mono80:
112112
case RuntimeMoniker.Mono90:
113-
case RuntimeMoniker.Mono100:
113+
case RuntimeMoniker.Mono10_0:
114114
#pragma warning disable CS0618 // Type or member is obsolete
115115
case RuntimeMoniker.NetCoreApp50:
116116
#pragma warning restore CS0618 // Type or member is obsolete

src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
528528
case RuntimeMoniker.Net70:
529529
case RuntimeMoniker.Net80:
530530
case RuntimeMoniker.Net90:
531-
case RuntimeMoniker.Net100:
531+
case RuntimeMoniker.Net10_0:
532532
return baseJob
533533
.WithRuntime(runtimeMoniker.GetRuntime())
534534
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings(runtimeId, null, runtimeId, options.CliPath?.FullName, options.RestorePath?.FullName)));
@@ -548,7 +548,7 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
548548
case RuntimeMoniker.NativeAot90:
549549
return CreateAotJob(baseJob, options, runtimeMoniker, "", "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json");
550550

551-
case RuntimeMoniker.NativeAot100:
551+
case RuntimeMoniker.NativeAot10_0:
552552
return CreateAotJob(baseJob, options, runtimeMoniker, "", "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json");
553553

554554
case RuntimeMoniker.Wasm:
@@ -569,7 +569,7 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
569569
case RuntimeMoniker.WasmNet90:
570570
return MakeWasmJob(baseJob, options, "net9.0", runtimeMoniker);
571571

572-
case RuntimeMoniker.WasmNet100:
572+
case RuntimeMoniker.WasmNet10_0:
573573
return MakeWasmJob(baseJob, options, "net10.0", runtimeMoniker);
574574

575575
case RuntimeMoniker.MonoAOTLLVM:
@@ -587,7 +587,7 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
587587
case RuntimeMoniker.MonoAOTLLVMNet90:
588588
return MakeMonoAOTLLVMJob(baseJob, options, "net9.0", runtimeMoniker);
589589

590-
case RuntimeMoniker.MonoAOTLLVMNet100:
590+
case RuntimeMoniker.MonoAOTLLVMNet10_0:
591591
return MakeMonoAOTLLVMJob(baseJob, options, "net10.0", runtimeMoniker);
592592

593593
case RuntimeMoniker.Mono60:
@@ -602,8 +602,8 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
602602
case RuntimeMoniker.Mono90:
603603
return MakeMonoJob(baseJob, options, MonoRuntime.Mono90);
604604

605-
case RuntimeMoniker.Mono100:
606-
return MakeMonoJob(baseJob, options, MonoRuntime.Mono100);
605+
case RuntimeMoniker.Mono10_0:
606+
return MakeMonoJob(baseJob, options, MonoRuntime.Mono10_0);
607607

608608
default:
609609
throw new NotSupportedException($"Runtime {runtimeId} is not supported");

src/BenchmarkDotNet/Environments/Runtimes/CoreRuntime.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public class CoreRuntime : Runtime
2525
public static readonly CoreRuntime Core70 = new (RuntimeMoniker.Net70, "net7.0", ".NET 7.0");
2626
public static readonly CoreRuntime Core80 = new (RuntimeMoniker.Net80, "net8.0", ".NET 8.0");
2727
public static readonly CoreRuntime Core90 = new (RuntimeMoniker.Net90, "net9.0", ".NET 9.0");
28-
public static readonly CoreRuntime Core100 = new (RuntimeMoniker.Net100, "net10.0", ".NET 10.0");
28+
public static readonly CoreRuntime Core10_0 = new (RuntimeMoniker.Net10_0, "net10.0", ".NET 10.0");
2929

30-
public static CoreRuntime Latest => Core100; // when dotnet/runtime branches for 11.0, this will need to get updated
30+
public static CoreRuntime Latest => Core10_0; // when dotnet/runtime branches for 11.0, this will need to get updated
3131

3232
private CoreRuntime(RuntimeMoniker runtimeMoniker, string msBuildMoniker, string displayName)
3333
: base(runtimeMoniker, msBuildMoniker, displayName)
@@ -75,7 +75,7 @@ internal static CoreRuntime FromVersion(Version version)
7575
case Version v when v.Major == 7 && v.Minor == 0: return GetPlatformSpecific(Core70);
7676
case Version v when v.Major == 8 && v.Minor == 0: return GetPlatformSpecific(Core80);
7777
case Version v when v.Major == 9 && v.Minor == 0: return GetPlatformSpecific(Core90);
78-
case Version v when v.Major == 10 && v.Minor == 0: return GetPlatformSpecific(Core100);
78+
case Version v when v.Major == 10 && v.Minor == 0: return GetPlatformSpecific(Core10_0);
7979
default:
8080
return version >= new Version(3, 1)
8181
? CreateForNewVersion($"net{version.Major}.{version.Minor}", $".NET {version.Major}.{version.Minor}")

src/BenchmarkDotNet/Environments/Runtimes/MonoRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class MonoRuntime : Runtime, IEquatable<MonoRuntime>
1010
public static readonly MonoRuntime Mono70 = new ("Mono with .NET 7.0", RuntimeMoniker.Mono70, "net7.0", isDotNetBuiltIn: true);
1111
public static readonly MonoRuntime Mono80 = new ("Mono with .NET 8.0", RuntimeMoniker.Mono80, "net8.0", isDotNetBuiltIn: true);
1212
public static readonly MonoRuntime Mono90 = new ("Mono with .NET 9.0", RuntimeMoniker.Mono90, "net9.0", isDotNetBuiltIn: true);
13-
public static readonly MonoRuntime Mono100 = new ("Mono with .NET 10.0", RuntimeMoniker.Mono100, "net10.0", isDotNetBuiltIn: true);
13+
public static readonly MonoRuntime Mono10_0 = new ("Mono with .NET 10.0", RuntimeMoniker.Mono10_0, "net10.0", isDotNetBuiltIn: true);
1414

1515
public string CustomPath { get; }
1616

src/BenchmarkDotNet/Environments/Runtimes/NativeAotRuntime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class NativeAotRuntime : Runtime
2525
/// <summary>
2626
/// NativeAOT compiled as net10.0
2727
/// </summary>
28-
public static readonly NativeAotRuntime Net100 = new NativeAotRuntime(RuntimeMoniker.NativeAot100, "net10.0", "NativeAOT 10.0");
28+
public static readonly NativeAotRuntime Net10_0 = new NativeAotRuntime(RuntimeMoniker.NativeAot10_0, "net10.0", "NativeAOT 10.0");
2929

3030
public override bool IsAOT => true;
3131

@@ -52,7 +52,7 @@ public static NativeAotRuntime GetCurrentVersion()
5252
case Version v when v.Major == 7 && v.Minor == 0: return Net70;
5353
case Version v when v.Major == 8 && v.Minor == 0: return Net80;
5454
case Version v when v.Major == 9 && v.Minor == 0: return Net90;
55-
case Version v when v.Major == 10 && v.Minor == 0: return Net100;
55+
case Version v when v.Major == 10 && v.Minor == 0: return Net10_0;
5656
default:
5757
return new NativeAotRuntime(RuntimeMoniker.NotRecognized, $"net{version.Major}.{version.Minor}", $"NativeAOT {version.Major}.{version.Minor}");
5858
}

src/BenchmarkDotNet/Extensions/RuntimeMonikerExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ internal static Runtime GetRuntime(this RuntimeMoniker runtimeMoniker)
3939
return CoreRuntime.Core80;
4040
case RuntimeMoniker.Net90:
4141
return CoreRuntime.Core90;
42-
case RuntimeMoniker.Net100:
43-
return CoreRuntime.Core100;
42+
case RuntimeMoniker.Net10_0:
43+
return CoreRuntime.Core10_0;
4444
case RuntimeMoniker.Mono:
4545
return MonoRuntime.Default;
4646
case RuntimeMoniker.NativeAot60:
@@ -49,16 +49,16 @@ internal static Runtime GetRuntime(this RuntimeMoniker runtimeMoniker)
4949
return NativeAotRuntime.Net70;
5050
case RuntimeMoniker.NativeAot80:
5151
return NativeAotRuntime.Net80;
52-
case RuntimeMoniker.NativeAot100:
53-
return NativeAotRuntime.Net100;
52+
case RuntimeMoniker.NativeAot10_0:
53+
return NativeAotRuntime.Net10_0;
5454
case RuntimeMoniker.Mono60:
5555
return MonoRuntime.Mono60;
5656
case RuntimeMoniker.Mono70:
5757
return MonoRuntime.Mono70;
5858
case RuntimeMoniker.Mono80:
5959
return MonoRuntime.Mono80;
60-
case RuntimeMoniker.Mono100:
61-
return MonoRuntime.Mono100;
60+
case RuntimeMoniker.Mono10_0:
61+
return MonoRuntime.Mono10_0;
6262
default:
6363
throw new ArgumentOutOfRangeException(nameof(runtimeMoniker), runtimeMoniker, "Runtime Moniker not supported");
6464
}

src/BenchmarkDotNet/Toolchains/CsProj/CsProjCoreToolchain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class CsProjCoreToolchain : Toolchain, IEquatable<CsProjCoreToolchain>
2929
[PublicAPI] public static readonly IToolchain NetCoreApp70 = From(NetCoreAppSettings.NetCoreApp70);
3030
[PublicAPI] public static readonly IToolchain NetCoreApp80 = From(NetCoreAppSettings.NetCoreApp80);
3131
[PublicAPI] public static readonly IToolchain NetCoreApp90 = From(NetCoreAppSettings.NetCoreApp90);
32-
[PublicAPI] public static readonly IToolchain NetCoreApp100 = From(NetCoreAppSettings.NetCoreApp100);
32+
[PublicAPI] public static readonly IToolchain NetCoreApp10_0 = From(NetCoreAppSettings.NetCoreApp10_0);
3333

3434
internal CsProjCoreToolchain(string name, IGenerator generator, IBuilder builder, IExecutor executor, string customDotNetCliPath)
3535
: base(name, generator, builder, executor)

src/BenchmarkDotNet/Toolchains/DotNetCli/NetCoreAppSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class NetCoreAppSettings
2424
[PublicAPI] public static readonly NetCoreAppSettings NetCoreApp70 = new ("net7.0", null, ".NET 7.0");
2525
[PublicAPI] public static readonly NetCoreAppSettings NetCoreApp80 = new ("net8.0", null, ".NET 8.0");
2626
[PublicAPI] public static readonly NetCoreAppSettings NetCoreApp90 = new ("net9.0", null, ".NET 9.0");
27-
[PublicAPI] public static readonly NetCoreAppSettings NetCoreApp100 = new ("net10.0", null, ".NET 10.0");
27+
[PublicAPI] public static readonly NetCoreAppSettings NetCoreApp10_0 = new ("net10.0", null, ".NET 10.0");
2828

2929
/// <summary>
3030
/// <param name="targetFrameworkMoniker">

0 commit comments

Comments
 (0)