Update ProjectBuildTests.cs

This commit is contained in:
William Godbe 2022-01-24 14:44:35 -08:00 committed by GitHub
parent a52977f225
commit 56ae7c4d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,15 +394,6 @@ namespace EndToEnd.Tests
int latestMajorVersion = runtimeFolders.Select(folder => int.Parse(Path.GetFileName(folder).Split('.').First())).Max();
if (latestMajorVersion == 7)
{
// 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("mstest")
|| template.StartsWith("nunit")
|| template.StartsWith("xunit"))
{
return "net6.0";
}
return $"net{latestMajorVersion}.0";
}