dotnet runtime settings

This commit is contained in:
Daniel Balk
2023-05-05 17:46:44 +02:00
parent 09a80db09c
commit 022693e50f
4 changed files with 191 additions and 0 deletions

View File

@@ -37,6 +37,17 @@ public static class ParseHelper
return res;
}
public static string ToDotnetVersionName(string raw)
{
var dockerImageTag = raw.Split(":").Last();
var name = dockerImageTag.Replace("_", ".")
.Replace("dotnetcore", ".NET Core ")
.Replace("dotnet", ".NET ");
return name;
}
public static string GetHighestVersion(string[] versions)
{