diff --git a/src/Verify/Naming/Namer.cs b/src/Verify/Naming/Namer.cs index 9b9c6a4a06..08a257d0b6 100644 --- a/src/Verify/Naming/Namer.cs +++ b/src/Verify/Naming/Namer.cs @@ -173,21 +173,14 @@ internal Namer(Namer namer) return ("Net", version); } - var environmentVersion = Environment.Version; - - if (description.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase)) - { - return ("Core", environmentVersion); - } - if (description.StartsWith(".NET", StringComparison.OrdinalIgnoreCase)) { - return ("DotNet", environmentVersion); + return ("DotNet", Environment.Version); } if (description.StartsWith("Mono", StringComparison.OrdinalIgnoreCase)) { - return ("Mono", environmentVersion); + return ("Mono", Environment.Version); } throw new($"Could not resolve runtime for '{description}'.");