Enable the 9.0 templates

This commit is contained in:
Marc Paine 2023-10-31 11:31:16 -07:00
parent 1a06ce4f08
commit d712505e09
4 changed files with 5 additions and 12 deletions

View file

@ -187,7 +187,7 @@
</ItemGroup>
<Copy SourceFiles="%(BundledTemplatesWithInstallPaths.RestoredNupkgPath)"
DestinationFolder="$(RedistLayoutPath)templates/%(BundledTemplatesWithInstallPaths.BundledTemplateInstallPath)"
Condition="'%(BundledTemplatesWithInstallPaths.TemplateFrameworkVersion)' == '8.0'"/>
Condition="'%(BundledTemplatesWithInstallPaths.TemplateFrameworkVersion)' == '9.0'"/>
</Target>
<Target Name="LayoutTemplatesForMSI"

View file

@ -18,7 +18,7 @@ namespace EndToEnd
[ClassData(typeof(SupportedNetCoreAppVersions))]
public void ItDoesNotRollForwardToTheLatestVersionOfNetCore(string minorVersion)
{
if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0")
if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0")
{
// https://github.com/dotnet/core-sdk/issues/621
return;
@ -30,7 +30,7 @@ namespace EndToEnd
[ClassData(typeof(SupportedAspNetCoreVersions))]
public void ItDoesNotRollForwardToTheLatestVersionOfAspNetCoreApp(string minorVersion)
{
if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0")
if (minorVersion == "3.0" || minorVersion == "3.1" || minorVersion == "5.0" || minorVersion == "6.0" || minorVersion == "7.0" || minorVersion == "8.0" || minorVersion == "9.0")
{
// https://github.com/dotnet/core-sdk/issues/621
return;

View file

@ -440,14 +440,6 @@ 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("mstest")
|| template.StartsWith("winforms")
|| template.StartsWith("wpf")
|| template.StartsWith("web")
|| template.StartsWith("razor")
|| template.StartsWith("blazor")
|| template.StartsWith("mvc")
|| template.StartsWith("worker")
|| template.StartsWith("grpc")
|| template.StartsWith("classlib")
|| template.StartsWith("console")
|| template.StartsWith("nunit")

View file

@ -31,7 +31,8 @@ namespace EndToEnd
"5.0",
"6.0",
"7.0",
"8.0"
"8.0",
"9.0"
};
public static IEnumerable<string> TargetFrameworkShortFolderVersion