Skip to content

Commit

Permalink
Fix MSBuild property evaluation (#355)
Browse files Browse the repository at this point in the history
Fix MSBuild parameters specified in `aws-lambda-tools-defaults.json` not being used with `Utilities.LookPublishAotFlag()`.
Resolves #351.
  • Loading branch information
martincostello authored Dec 19, 2024
1 parent 832851c commit 2c711df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Amazon.Lambda.Tools/Commands/PackageCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ protected override async Task<bool> 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();
Expand Down

0 comments on commit 2c711df

Please sign in to comment.