.net 6 and 5 also

This commit is contained in:
Matthew Parker [SSW]
2023-11-24 13:11:29 +10:00
parent e27a03c095
commit 3c7e2485f7

View File

@@ -24,7 +24,7 @@ public static class DotNetUpgrade
.PropertyGroups
.SelectMany(x => x.Properties)
.FirstOrDefault(x => x.Name == "TargetFramework");
if (targetFramework?.Value is "net7.0")
if (targetFramework?.Value is "net7.0" or "net6.0" or "net5.0")
{
targetFramework.Value = "net8.0";
project.Save();