Update ProjectBuildTests.cs

This commit is contained in:
Marc Paine 2022-01-13 11:23:58 -08:00 committed by GitHub
parent 5a82478394
commit a60232fccd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -396,12 +396,16 @@ namespace EndToEnd.Tests
{
// 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("winforms"))
if (template.StartsWith("mstest")
|| template.StartsWith("mstest")
|| template.StartsWith("classlib")
|| template.StartsWith("console")
|| template.StartsWith("nunit")
|| template.StartsWith("xunit"))
{
return $"net{latestMajorVersion}.0";
return "net6.0";
}
return "net6.0";
return $"net{latestMajorVersion}.0";
}
throw new Exception("Unsupported version of SDK");