Insert net9.0 test templates (#17745)
This commit is contained in:
parent
3669cc95e9
commit
00178e6f21
4 changed files with 7 additions and 11 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue