Describe the bug
When using AWS SDK for .NET v4 (e.g. AWSSDK.Core version 4.0.0), the dotnet-lambda package command fails with the following error:
/usr/local/share/dotnet/sdk/9.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(470,5): error : Error: Failed to load type 'Amazon.Runtime.Internal.Transform.IUnmarshaller`2' from assembly 'AWSSDK.Core, Version=4.0.0.0'
This appears to be due to a breaking change in AWSSDK.Core, where IUnmarshaller<T1, T2> has been removed or refactored in version 4.x. The Lambda packaging tool still expects it to exist.
Regression Issue
Expected Behavior
dotnet-lambda package should successfully build and package the Lambda function using AWS SDK v4.
Current Behavior
The command fails with:
Failed to load type 'Amazon.Runtime.Internal.Transform.IUnmarshaller`2'
Reproduction Steps
- Create a .NET 8 Lambda project.
- Upgrade AWS SDK packages (e.g.,
AWSSDK.Core, AWSSDK.Lambda, etc.) to version 4.0.0.
- Run
dotnet tool run dotnet-lambda package.
Possible Solution
Please update Amazon.Lambda.Tools to be compatible with AWS SDK v4.
Additional Information/Context
No response
Targeted .NET platform
NET SDK: 9.0.203
CLI extension version
5.12.4
Environment details (OS name and version, etc.)
OS: macOS / Ubuntu runner in GitHub Actions
Describe the bug
When using AWS SDK for .NET v4 (e.g. AWSSDK.Core version 4.0.0), the dotnet-lambda package command fails with the following error:
This appears to be due to a breaking change in AWSSDK.Core, where IUnmarshaller<T1, T2> has been removed or refactored in version 4.x. The Lambda packaging tool still expects it to exist.
Regression Issue
Expected Behavior
dotnet-lambda packageshould successfully build and package the Lambda function using AWS SDK v4.Current Behavior
The command fails with:
Reproduction Steps
AWSSDK.Core,AWSSDK.Lambda, etc.) to version4.0.0.dotnet tool run dotnet-lambda package.Possible Solution
Please update
Amazon.Lambda.Toolsto be compatible with AWS SDK v4.Additional Information/Context
No response
Targeted .NET platform
NET SDK: 9.0.203
CLI extension version
5.12.4
Environment details (OS name and version, etc.)
OS: macOS / Ubuntu runner in GitHub Actions