Skip to content

Commit

Permalink
Update Namer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 26, 2021
1 parent 0cf79d6 commit b9b6deb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Verify/Naming/Namer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.");
Expand Down

0 comments on commit b9b6deb

Please sign in to comment.