aws / aws-lambda-dotnet

Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
Apache License 2.0
1.58k stars 476 forks source link

fix: Fixed failing unit test due to unsupported operation in latest .NET patches #1741

Closed philasmar closed 7 months ago

philasmar commented 7 months ago

Description of changes: After upgrading our pipelines to the latest .NET 8 patches, a unit test started to fail due to the error:

error ASP0010: UseStartup cannot be used with WebApplicationBuilder.WebHost

I have updated the test to not use UseStartup for the local entry point.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.