From 2c711df14779910d51197d5eb48028235e9be33b Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Thu, 19 Dec 2024 18:20:03 +0000 Subject: [PATCH] Fix MSBuild property evaluation (#355) Fix MSBuild parameters specified in `aws-lambda-tools-defaults.json` not being used with `Utilities.LookPublishAotFlag()`. Resolves #351. --- src/Amazon.Lambda.Tools/Commands/PackageCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Amazon.Lambda.Tools/Commands/PackageCommand.cs b/src/Amazon.Lambda.Tools/Commands/PackageCommand.cs index 518a603..3999e69 100644 --- a/src/Amazon.Lambda.Tools/Commands/PackageCommand.cs +++ b/src/Amazon.Lambda.Tools/Commands/PackageCommand.cs @@ -220,7 +220,7 @@ protected override async Task PerformActionAsync() } } - bool isNativeAot = Utilities.LookPublishAotFlag(projectLocation, this.MSBuildParameters); + bool isNativeAot = Utilities.LookPublishAotFlag(projectLocation, msbuildParameters); var architecture = this.GetStringValueOrDefault(this.Architecture, LambdaDefinedCommandOptions.ARGUMENT_FUNCTION_ARCHITECTURE, false); var disableVersionCheck = this.GetBoolValueOrDefault(this.DisableVersionCheck, LambdaDefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK, false).GetValueOrDefault();