Insert net9.0 test templates (#17745)

This commit is contained in:
Codrin-Victor Poienaru 2023-11-09 18:52:19 +01:00 committed by GitHub
parent 3669cc95e9
commit 00178e6f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 11 deletions

View file

@ -437,14 +437,6 @@ namespace EndToEnd.Tests
int latestMajorVersion = runtimeFolders.Select(folder => int.Parse(Path.GetFileName(folder).Split('.').First())).Max();
if (latestMajorVersion == 9)
{
// TODO: This block need to be updated when every template updates their default tfm.
// Currently winforms updated their default templates target but not others.
if (template.StartsWith("mstest")
|| template.StartsWith("nunit")
|| template.StartsWith("xunit"))
{
return $"net8.0";
}
return $"net{latestMajorVersion}.0";
}