@@ -26,6 +26,7 @@ namespace Amazon.Lambda.Tools
2626{
2727 public static class TargetFrameworkMonikers
2828 {
29+ public const string net90 = "net9.0" ;
2930 public const string net80 = "net8.0" ;
3031 public const string net70 = "net7.0" ;
3132 public const string net60 = "net6.0" ;
@@ -46,7 +47,8 @@ public static class TargetFrameworkMonikers
4647 net50 ,
4748 net60 ,
4849 net70 ,
49- net80
50+ net80 ,
51+ net90
5052 } ;
5153 }
5254
@@ -56,7 +58,7 @@ public static class LambdaUtilities
5658
5759 public static readonly IReadOnlyDictionary < string , string > _lambdaRuntimeToDotnetFramework = new Dictionary < string , string > ( )
5860 {
59- { "dotnet8" , TargetFrameworkMonikers . net80 } , // Use the string version since the SDK hasn't been updated yet.
61+ { Amazon . Lambda . Runtime . Dotnet8 . Value , TargetFrameworkMonikers . net80 } ,
6062 { Amazon . Lambda . Runtime . Dotnet6 . Value , TargetFrameworkMonikers . net60 } ,
6163 { Amazon . Lambda . Runtime . Dotnetcore31 . Value , TargetFrameworkMonikers . netcoreapp31 } ,
6264 { Amazon . Lambda . Runtime . Dotnetcore21 . Value , TargetFrameworkMonikers . netcoreapp21 } ,
@@ -121,6 +123,8 @@ public static string GetDefaultBuildImage(string targetFramework, string archite
121123
122124 switch ( targetFramework ? . ToLower ( ) )
123125 {
126+ case TargetFrameworkMonikers . net90 :
127+ return $ "public.ecr.aws/sam/build-dotnet9:latest-{ architecture } ";
124128 case TargetFrameworkMonikers . net80 :
125129 return $ "public.ecr.aws/sam/build-dotnet8:latest-{ architecture } ";
126130 case TargetFrameworkMonikers . net70 :
0 commit comments