Lambda Generated Main Fails To Compile With Ambiguous Call Error #1907
Labels
annotations
bug
This issue is a bug.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
This is a standard priority issue
Describe the bug
Trying to upgrade a .NET Lambda from Core 3.1 to 8.0 AOT. It takes no input and produces no output (it's just being used as a scheduled task).
I added a
[assembly: LambdaGlobalProperties( GenerateMain = true )]
attribute and added a[LambdaFunction]
attribute to my function handler method, but compiling now gives error CS0121.Note that the generated Program.g.cs is immediately deleted so I'm not able to examine it.
Regression Issue
Expected Behavior
Lambda generated main compiles
Current Behavior
Error (active) CS0121 The call is ambiguous between the following methods or properties: 'LambdaBootstrapBuilder.Create<TInput>(Func<TInput, Task>, ILambdaSerializer)' and 'LambdaBootstrapBuilder.Create<TOutput>(Func<Stream, TOutput>, ILambdaSerializer)' PROJECT PROJECTPATH\obj\Release\net8.0\Amazon.Lambda.Annotations.SourceGenerator\Amazon.Lambda.Annotations.SourceGenerator.Generator\Program.g.cs 25
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Targeted .NET Platform
.NET 8.,0
Operating System and version
Compiling on Windows 10
The text was updated successfully, but these errors were encountered: