fix: pin Amazon.Lambda.Tools to 5.13.2 for dotnet6 runtime - #897
Closed
ckawl wants to merge 5 commits into
Closed
Conversation
Amazon.Lambda.Tools 7.0.0 dropped support for .NET 6 (net6.0), breaking sam build --use-container for dotnet6. Pin to 5.14.0 (last compatible version) when the runtime is dotnet6.
…time builds Replace __tools_installed boolean with __installed_version string so a dotnet6 build can re-pin Amazon.Lambda.Tools to 5.14.0 even if another runtime already installed the latest version in the same process.
ckawl
marked this pull request as draft
July 27, 2026 23:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amazon.Lambda.Tools 7.0.0 dropped support for .NET 6 (net6.0), breaking sam build --use-container for dotnet6. Pin to 5.13.2 (last compatible version) when the runtime is dotnet6.
Issue #, if available:
Description of changes
Pin Amazon.Lambda.Tools to version 5.13.2 for dotnet6 runtime in GlobalToolInstallAction. Version 7.0.0 of
Amazon.Lambda.Tools dropped support for .NET 6.0 (net6.0), causing sam build --use-container to fail with NU1202 when
building dotnet6 Lambda functions. The fix passes the runtime to GlobalToolInstallAction and appends --version
5.13.2 to the dotnet tool install/update command only when the runtime is dotnet6. All other runtimes are unaffected.
Description of how you validated changes
version
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.