Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .NET 8 version of the Lambda Test Tool and remove .NET Core 3.1 and .NET 5 versions. #1601

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

normj
Copy link
Member

@normj normj commented Nov 1, 2023

Description of changes:
Add a .NET 8 version of the deploy tool. This involved

  • Adding new Amazon.Lambda.TestTool.BlazorTester80-pack.csproj to package the tool for .NET 8 similar to previous versions of this file.
  • Update buildtools\build.proj to package new .NET 8 version and stop packaging .NET Core 3.1 and .NET 5 version.
  • Add net8.0 as target framework in projects
  • Remove netcoreapp3.1 and net5.0 as target frameworks in projects.
  • Update #if used for branding as .NET 8
  • The test tool embeds all of the static files and uses the ManifestEmbeddedFileProvider to serve the static files. In .NET 8 Blazor made changes to how the file providers were setup so I needed to add a new .NET 8+ code in the Startup class for setting up the ManifestEmbeddedFileProvider.

The test project and all of the test lambda function projects had to be refactored to get this tested. Before all of the were testing against .NET Core 3.1 except for a few tests in a .NET 6 project for source generator. I refactored the tests to have a single test project that multi targets .NET 6 and 8 and moved all of the tests under that projects. So now all of the tests are run for both 6 and 8. All of the sample test function projects were moved from a .NET Core 3.1 specific folder to a generic tests/LambdaFunctions folder and all of the function projects multi target .NET 6 and 8. Since no new features were added no new tests were added or changed other then to work in this new structured.

The tests for the project had to be refactored they were all targeting .NET Core 3.1. This involved a lot of moving test files around. There were no changes done to the tests files other then put them under a single mutli target

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

Copy link

@ronanj2 ronanj2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: perhaps remove these lines from README since these TFMs are getting removed in this PR
https://github.com/aws/aws-lambda-dotnet/pull/1601/files#diff-238787c578ef0bb3232fb617b55904f9ad9ff6dca823008d99a4d23c2ae9cc46R33-R35

@normj
Copy link
Member Author

normj commented Nov 9, 2023

nit: perhaps remove these lines from README since these TFMs are getting removed in this PR https://github.com/aws/aws-lambda-dotnet/pull/1601/files#diff-238787c578ef0bb3232fb617b55904f9ad9ff6dca823008d99a4d23c2ae9cc46R33-R35

I thought about removing them from the table but since the packages are still available on NuGet I left them there but with the (Deprecated) suffix.

@normj normj merged commit 667f661 into dev Nov 17, 2023
3 checks passed
@normj normj deleted the normj/testtool-net8 branch November 17, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants