Update ProjectBuildTests.cs
This commit is contained in:
parent
5a82478394
commit
a60232fccd
1 changed files with 8 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue