From 7894edc3f6fe98ad5f3be90114a22682ab8fa675 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Fri, 4 Dec 2026 12:39:12 -0500 Subject: [PATCH 1/2] chore(core)!: drop .NET 8 and .NET 9 support Target net10.0 and net11.0 only. Remove the .NET 9 analyzer suppressions, old package groups, reference assemblies, SDKs, and stale docs. BREAKING CHANGE: The packages no longer provide net8.0 or net9.0 assets. Consumers must retarget to net10.0 or net11.0 before upgrading to 3.0.0. --- CONTRIBUTING.md | 50 ++-- Directory.Build.props | 2 +- Directory.Packages.props | 15 - designs/drop-net8-net9.md | 268 ++++++++++++++++++ docs/getting-started/first-lambda.md | 2 +- docs/getting-started/index.md | 2 +- docs/getting-started/installation.md | 33 ++- docs/guides/configuration.md | 2 +- docs/guides/handler-registration.md | 2 +- docs/guides/lifecycle-management.md | 2 +- ...nimalLambda.Example.ClassMiddleware.csproj | 2 +- ...inimalLambda.Example.EventProcessor.csproj | 2 +- .../README.md | 14 +- .../aws-lambda-tools-defaults.json | 2 +- .../MinimalLambda.Example.Events.csproj | 2 +- .../MinimalLambda.Example.HelloWorld.csproj | 2 +- ...MinimalLambda.Example.HelloWorldAot.csproj | 2 +- .../MinimalLambda.Example.Lifecycle.csproj | 2 +- ...MinimalLambda.Example.OpenTelemetry.csproj | 2 +- mise.lock | 10 - mise.toml | 4 +- scripts/test-package-compatibility.sh | 8 +- .../references/client-project-setup.md | 4 +- .../references/repo-workflow.md | 4 +- .../MinimalLambda.Envelopes.Alb.csproj | 2 +- .../MinimalLambda.Envelopes.ApiGateway.csproj | 2 +- ...imalLambda.Envelopes.CloudWatchLogs.csproj | 2 +- .../MinimalLambda.Envelopes.Kafka.csproj | 2 +- .../MinimalLambda.Envelopes.Kinesis.csproj | 2 +- ...malLambda.Envelopes.KinesisFirehose.csproj | 2 +- .../MinimalLambda.Envelopes.Sns.csproj | 2 +- .../MinimalLambda.Envelopes.Sqs.csproj | 2 +- .../MinimalLambda.Envelopes.csproj | 12 +- .../Core/ILambdaLifecycleContext.cs | 2 +- .../MinimalLambda.Abstractions.csproj | 2 +- .../MinimalLambda.EventProcessing.csproj | 2 +- .../MinimalLambda.OpenTelemetry.csproj | 12 +- .../MinimalLambda.Templates.csproj | 2 +- .../BlueprintBaseName.1.csproj | 4 +- .../src/BlueprintBaseName.1/README.md | 4 +- .../aws-lambda-tools-defaults.json | 2 +- .../BlueprintBaseName.1.Tests.csproj | 4 +- .../BlueprintBaseName.1.csproj | 4 +- .../mlambda/src/BlueprintBaseName.1/README.md | 4 +- .../aws-lambda-tools-defaults.json | 2 +- .../BlueprintBaseName.1.Tests.csproj | 4 +- .../MinimalLambda.Testing.csproj | 12 +- src/MinimalLambda/MinimalLambda.csproj | 12 +- .../MinimalLambda.Envelopes.UnitTests.csproj | 2 +- ...malLambda.EventProcessing.UnitTests.csproj | 2 +- ...nimalLambda.OpenTelemetry.UnitTests.csproj | 2 +- .../DurableHandlerDiagnosticTests.cs | 2 - .../DurableHandlerDiscoveryTests.cs | 2 - .../DurableHandlerEmitterTests.cs | 2 - .../DurableSerializerDiagnosticTests.cs | 2 - .../GeneratorTestHelpers.cs | 10 +- ...alLambda.SourceGenerators.UnitTests.csproj | 8 +- ...alLambda.Testing.UnitTests.DiLambda.csproj | 2 +- ...ting.UnitTests.EventProcessorLambda.csproj | 2 +- ...bda.Testing.UnitTests.NoEventLambda.csproj | 2 +- ....Testing.UnitTests.NoResponseLambda.csproj | 2 +- ...mbda.Testing.UnitTests.SimpleLambda.csproj | 2 +- .../DurableLambdaTests.cs | 2 - .../MinimalLambda.Testing.UnitTests.csproj | 5 +- .../LambdaLifecycleContextFactoryTests.cs | 8 +- .../Context/LambdaLifecycleContextTests.cs | 2 +- .../MinimalLambda.UnitTests.csproj | 2 +- .../EventProcessorConsumer.csproj | 2 +- 68 files changed, 395 insertions(+), 206 deletions(-) create mode 100644 designs/drop-net8-net9.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index db66bd0f..1cb45b94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,23 +7,23 @@ guidelines and instructions for contributing. -* [Contributing to MinimalLambda](#contributing-to-minimal-lambda) - * [Table of Contents](#table-of-contents) - * [Code of Conduct](#code-of-conduct) - * [Getting Started](#getting-started) - * [Development Setup](#development-setup) - * [Code Formatting](#code-formatting) - * [Making Changes](#making-changes) - * [Commit Guidelines](#commit-guidelines) - * [Pull Request Process](#pull-request-process) - * [Code Style](#code-style) - * [Testing](#testing) - * [Documentation](#documentation) - * [Target Frameworks](#target-frameworks) - * [Central Package Management](#central-package-management) - * [CI/CD Integration](#cicd-integration) - * [Questions or Need Help?](#questions-or-need-help) - * [License](#license) +- [Contributing to MinimalLambda](#contributing-to-minimal-lambda) + - [Table of Contents](#table-of-contents) + - [Code of Conduct](#code-of-conduct) + - [Getting Started](#getting-started) + - [Development Setup](#development-setup) + - [Code Formatting](#code-formatting) + - [Making Changes](#making-changes) + - [Commit Guidelines](#commit-guidelines) + - [Pull Request Process](#pull-request-process) + - [Code Style](#code-style) + - [Testing](#testing) + - [Documentation](#documentation) + - [Target Frameworks](#target-frameworks) + - [Central Package Management](#central-package-management) + - [CI/CD Integration](#cicd-integration) + - [Questions or Need Help?](#questions-or-need-help) + - [License](#license) @@ -63,7 +63,7 @@ mise run setup ``` Review `mise.toml` before trusting it. The configuration installs the build SDK from `global.json`, -.NET 8/9/10 SDKs for the test runtimes, Node.js, Python, uv, and Task. SDKs share one .NET root so +.NET 10 and .NET 11 SDKs for the test runtimes, Node.js, Python, uv, and Task. SDKs share one .NET root so all test frameworks are available to the .NET 11 host. Tool installation runs sequentially to avoid concurrent SDK installers writing the same files. Resolved tool versions are recorded in `mise.lock` for Linux and macOS on x64/arm64, and Windows on x64. @@ -101,7 +101,7 @@ with tool changes. Put machine-specific overrides in the ignored `mise.local.tom ### Manual setup -Without mise, install the stable .NET 11 SDK, .NET 8/9/10 SDKs or their required runtimes, Node.js 24, +Without mise, install the stable .NET 11 SDK, the .NET 10 SDK or its runtime, Node.js 24, Python 3.13, uv, Task, and Git. Then run: ```bash @@ -114,7 +114,7 @@ task test:all ``` The SDK includes both .NET and ASP.NET Core runtimes. When installing only runtimes, install both -families for the older target frameworks. Exact SDK and tool versions are listed in `mise.lock`. +families for both supported target frameworks. Exact SDK and tool versions are listed in `mise.lock`. ## Code Formatting @@ -230,12 +230,14 @@ when using extension method syntax. ## Pull Request Process 1. **Ensure your branch is up to date**: + ```bash git fetch upstream git rebase upstream/main ``` 2. **Push to your fork**: + ```bash git push origin your-branch-name ``` @@ -384,13 +386,13 @@ dotnet test --coverage --coverage-output-format cobertura ## Target Frameworks -This project supports multiple .NET versions: +This project supports two .NET versions: -- **.NET 8.0** (supported) -- **.NET 9.0** (supported) - **.NET 10.0** (supported) - **.NET 11.0** (primary target) +The library packages stop at `net10.0` and `net11.0`. .NET 8 and .NET 9 are no longer supported. + Build the repository with the stable .NET 11 SDK, version 11.0.100 or later, and C# 15. `task build:aot-check` validates Native AOT publishing on .NET 10 and .NET 11. @@ -429,6 +431,6 @@ Ensure your changes pass all checks before requesting review. By contributing to this project, you agree that your contributions will be licensed under the same MIT License as the project. ---- +______________________________________________________________________ **Thank you for contributing to MinimalLambda!** 🚀 diff --git a/Directory.Build.props b/Directory.Build.props index dbe09ec9..8a465782 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -28,7 +28,7 @@ + Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0')) And !$(MSBuildProjectDirectory.Contains('tests'))"> true true true diff --git a/Directory.Packages.props b/Directory.Packages.props index c04786cb..d37ebade 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -23,7 +23,6 @@ - @@ -43,13 +42,9 @@ - - - - @@ -77,16 +72,6 @@ - - - - - - - - - - diff --git a/designs/drop-net8-net9.md b/designs/drop-net8-net9.md new file mode 100644 index 00000000..e6f21c2c --- /dev/null +++ b/designs/drop-net8-net9.md @@ -0,0 +1,268 @@ +# Drop .NET 8 and .NET 9 support + +Status: In progress + +Branch: `build/drop-net8-net9` + +Date: 2026-12-04 + +## Goal + +Raise the minimum supported target framework to `net10.0`. +Remove `net8.0` and `net9.0` from build assets, test runs, tooling, templates, examples, and docs. +Support `net10.0` and `net11.0` only. + +The production code has no `#if NET8_0` or `#if NET9_0` branches. +The work is mostly build graph, test matrix, packaging, and documentation cleanup. + +## Target frameworks after the change + +| Project group | Current targets | New targets | +| -------------------------------- | ----------------------------- | --------------- | +| `MinimalLambda` | net8.0;net9.0;net10.0;net11.0 | net10.0;net11.0 | +| `MinimalLambda.Abstractions` | net8.0;net9.0;net10.0;net11.0 | net10.0;net11.0 | +| `MinimalLambda.EventProcessing` | net8.0;net9.0;net10.0;net11.0 | net10.0;net11.0 | +| `MinimalLambda.Testing` | net8.0;net9.0;net10.0;net11.0 | net10.0;net11.0 | +| `MinimalLambda.OpenTelemetry` | net9.0;net10.0;net11.0 | net10.0;net11.0 | +| 9 envelope projects | net8.0;net9.0;net10.0 | net10.0;net11.0 | +| `MinimalLambda.DurableExecution` | net10.0 | net10.0 | +| `MinimalLambda.SourceGenerators` | netstandard2.0 | netstandard2.0 | +| Template and example apps | net8.0 or net9.0 | net10.0 | +| Library and fixture tests | 4 target frameworks | net10.0;net11.0 | +| Source generator tests | 4 target frameworks | net10.0;net11.0 | +| Event compatibility consumer | 4 target frameworks | net10.0;net11.0 | + +`MinimalLambda.DurableExecution` stays on `net10.0` because the upstream AWS durable package +ships only a `net10.0` asset. +`MinimalLambda.SourceGenerators` stays on `netstandard2.0` because Roslyn analyzers must load in +older compilers. + +`net10.0` is the default for templates and examples. It is the current LTS target and it has a +managed AWS Lambda runtime (`dotnet10`). `net11.0` remains available for consumers that want the +newest runtime. + +## Why this is safe and useful + +- The build and test matrix falls from four target frameworks to two. +- Four duplicate `AD0001` linker-analyzer suppressions for .NET 9 can be deleted. +- The .NET 8 and .NET 9 package version groups in `Directory.Packages.props` can be deleted. +- `Basic.Reference.Assemblies.Net80` and `Basic.Reference.Assemblies.Net90` can be deleted. +- The conditional reference selection in `GeneratorTestHelpers` becomes a two-branch selection. +- `mise` installs two SDKs instead of four. +- CI, package validation, and release scripts become smaller. +- Templates, examples, docs, and skills stop advertising unsupported targets. + +No runtime feature is lost. Code that already compiles for `net10.0` or `net11.0` does not depend +on the removed targets. + +## Breaking change and versioning + +Dropping a target framework is a breaking change for NuGet consumers. +A project that targets `net8.0` or `net9.0` cannot restore a package that has only `net10.0` assets. + +Recommended release: + +- Publish the change as a major version (`3.0.0`). +- Keep the `2.x` line available for critical fixes if users must stay on .NET 8 or .NET 9. +- Add a migration page that says: upgrade the application to `net10.0` or `net11.0` before you + upgrade MinimalLambda. +- Put the breaking change in the release notes and the pull request title (`build!` or a + `BREAKING CHANGE:` footer). + +## Current inventory + +### Build configuration + +- `Directory.Build.props`: the AOT compatibility condition references `net8.0`. +- `Directory.Packages.props`: `net8.0` and `net9.0` package groups exist. +- `Directory.Packages.props`: `Basic.Reference.Assemblies.Net80` and `Net90` exist. +- `global.json`: already selects the .NET 11 SDK. No change. +- `mise.toml` and `mise.lock`: install .NET 8, 9, 10, and 11. +- `tasks/BuildTasks.yml`: no .NET 8 or .NET 9 dependency. No change. + +### Project files + +38 project files contain `net8.0` or `net9.0`: + +- 5 core library projects. +- 9 envelope projects. +- 11 test projects. +- 7 example projects. +- 1 template package project. +- 4 template content projects. +- 1 package compatibility consumer. + +### Code + +- `tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs` selects + `Net110`, `Net100`, `Net90`, or `Net80` references at compile time. +- No production code has a `NET8_0` or `NET9_0` conditional branch. + +### Tests and package validation + +- `scripts/test-package-compatibility.sh` expects four target frameworks in package archives and + nuspec dependency groups. +- The same script builds the event consumer for `net8.0`, `net9.0`, and `net11.0`. +- `tests/package-compatibility/EventProcessorConsumer` targets four frameworks. + +### Examples and templates + +- Six examples target `net8.0`. The OpenTelemetry example targets `net9.0`. +- `examples/MinimalLambda.Example.EventProcessor/aws-lambda-tools-defaults.json` uses + `dotnet8`. +- `mlambda` and `mlambda-aot` templates target `net8.0` and use the `dotnet8` managed runtime. +- The template test projects target `net8.0`. + +### Documentation and skills + +- `docs/getting-started/index.md`: says .NET 8 SDK or later. +- `docs/getting-started/first-lambda.md`: says .NET 8 SDK. +- `docs/getting-started/installation.md`: lists four package assets, uses `net8.0` in examples, + and says .NET 8.0 or later in troubleshooting. +- `docs/guides/configuration.md`: uses a `net8.0` publish path. +- `docs/guides/handler-registration.md`: says keyed services require .NET 8+. +- `docs/guides/lifecycle-management.md`: uses `AWS_Lambda_dotnet8` as an example runtime ID. +- `CONTRIBUTING.md`: lists .NET 8 and .NET 9 as supported, and installs their SDKs. +- `skills/minimal-lambda/references/client-project-setup.md`: uses `net8.0`. +- `skills/minimal-lambda/references/repo-workflow.md`: says libraries target .NET 8, 9, 10, and 11. +- `examples/MinimalLambda.Example.EventProcessor/README.md`: requires the .NET 8 runtime. + +## Execution plan + +### Phase 1: Build graph + +01. Change the shared libraries to `net10.0;net11.0`. +02. Change the envelope projects to `net10.0;net11.0`. +03. Change the test projects and test fixture projects to `net10.0;net11.0`. +04. Keep `MinimalLambda.DurableExecution` on `net10.0`. +05. Keep `MinimalLambda.SourceGenerators` on `netstandard2.0`. +06. Remove the `net8.0` and `net9.0` package groups from `Directory.Packages.props`. +07. Remove the `Basic.Reference.Assemblies.Net80` and `Net90` package versions and references. +08. Change the AOT compatibility condition in `Directory.Build.props` from `net8.0` to + `net10.0`. +09. Delete the four `AD0001` suppression blocks for .NET 9. +10. Run `dotnet restore` and fix any restore or asset-selection error. + +Checkpoint: the solution restores and builds for `net10.0` and `net11.0`. + +### Phase 2: Code and tests + +1. Replace the reference selection in `GeneratorTestHelpers.cs` with `Net110` for + `NET11_0_OR_GREATER` and `Net100` otherwise. +2. Update the package compatibility consumer target frameworks. +3. Update `scripts/test-package-compatibility.sh`: + - expected library assets become `net10.0` and `net11.0`. + - expected dependency groups become `net10.0` and `net11.0`. + - the event consumer build loop becomes `net10.0` and `net11.0`. +4. Run the unit tests for both target frameworks. + +Checkpoint: tests pass on `net10.0` and `net11.0`, including the Runtime Async run. + +### Phase 3: Examples and templates + +1. Change the seven example projects to `net10.0`. +2. Change template content projects to `net10.0`. +3. Change `aws-lambda-tools-defaults.json` files from `dotnet8` to `dotnet10`. +4. Change the template package project to `net10.0`. +5. Build every example and generate both templates in a temporary directory. + +Checkpoint: generated `mlambda` and `mlambda-aot` projects build. + +### Phase 4: Documentation and skills + +1. Update prerequisites to .NET 10 or later as the target runtime. + Keep the .NET 11 SDK requirement for source generators and interceptors. +2. Update the package asset statement to `net10.0` and `net11.0`. +3. Replace `net8.0` paths and target framework examples with `net10.0`. +4. Update the supported framework table in `CONTRIBUTING.md`. +5. Remove the .NET 8 and .NET 9 SDK steps from setup instructions. +6. Update both affected skill references. +7. Add a migration note for consumers on .NET 8 or .NET 9. + +Checkpoint: no user-facing document advertises .NET 8 or .NET 9 as supported. + +### Phase 5: Tooling + +1. Change `mise.toml` .NET tools to `["{{ read_json(path='global.json')['sdk']['version'] }}", "10"]`. +2. Regenerate `mise.lock`. +3. Update `CONTRIBUTING.md` setup text. +4. Check `.github/workflows` for stale matrix entries. The current workflows install only the + .NET 11 SDK, so no matrix change is expected. + +Checkpoint: `mise install` and `task test:all` pass in a clean environment. + +### Phase 6: Validation and release preparation + +1. Run the full build with warnings as errors. +2. Run the unit tests on `net10.0` and `net11.0`. +3. Run the Runtime Async test pass. +4. Run `task build:aot-check`. +5. Run `task build:package-compat`. +6. Pack the solution and inspect `lib/` folders and nuspec dependency groups. +7. Run formatting and confirm no diff. +8. Draft the major-version release note and the migration note. + +## Simplification targets + +These are the concrete removals this change enables: + +- 3 copied `AD0001` suppression blocks. +- 2 target-framework package groups in central package management. +- 2 `Basic.Reference.Assemblies` packages and their references. +- 1 conditional branch in the generator test helper. +- 2 SDK installations in `mise`. +- 2 target frameworks in every multi-target build and test run. +- Stale target framework guidance in docs, skills, templates, and examples. + +Optional follow-up, not required for this change: centralize the common +`net10.0;net11.0` value in `Directory.Build.props`. +Do not do it now. It couples projects that need different targets and adds indirection for a +small amount of duplication. + +## Acceptance criteria + +- All packages except Durable Execution, source generators, and templates expose only + `net10.0` and `net11.0` assets. +- Durable Execution continues to expose only `net10.0`. +- Source generators continue to expose only `netstandard2.0`. +- No tracked source, build, test, template, example, or documentation file references + `net8.0` or `net9.0` as a supported target. + Historical release notes and the migration page may mention them. +- `mise` installs only the .NET 10 and .NET 11 SDKs. +- The package compatibility script validates the new target sets. +- CI passes build, tests, Runtime Async tests, AOT validation, package validation, and formatting. +- The release notes declare a breaking change. + +## Risks and mitigations + +| Risk | Mitigation | +| --------------------------------------------------- | -------------------------------------------------------------- | +| Consumers on .NET 8 or .NET 9 cannot upgrade | Major version, migration page, keep 2.x for critical fixes | +| NuGet selects a `net10.0` asset for a `net11.0` app | Ship `net11.0` assets for core libraries and test both targets | +| Envelope projects currently lack a `net11.0` asset | Add `net11.0` in Phase 1 and validate with the AOT app | +| Durable Execution cannot add `net11.0` | Keep `net10.0` only and document the upstream constraint | +| Test helper uses the wrong reference assembly | Keep `Net110` and `Net100` only; remove the unused branches | +| SDK installation changes break local setup | Regenerate `mise.lock` and validate in a clean checkout | + +## Implementation status + +The branch contains the full change. + +Completed validation: + +- `dotnet restore MinimalLambda.sln` succeeds. +- `dotnet build MinimalLambda.sln -c Release /p:TreatWarningsAsErrors=true` succeeds with zero + warnings. +- All test assemblies pass on `net10.0` and `net11.0`. +- The `net11.0` Runtime Async build and test pass. +- `task build:aot-check` passes for `net10.0`, `net11.0`, and `net11.0` Runtime Async. +- `task build:package-compat` passes with the new package assets and dependency groups. +- Both generated templates build with the local package feed. +- `task local:docs:build` reports no issues. + +## Resolved decisions + +1. The next release is a major version: `3.0.0`. +2. Envelope packages ship `net10.0` and `net11.0` assets. +3. Templates default to `net10.0` because it is the current LTS target and has a managed Lambda + runtime. diff --git a/docs/getting-started/first-lambda.md b/docs/getting-started/first-lambda.md index e20af669..cc110ecc 100644 --- a/docs/getting-started/first-lambda.md +++ b/docs/getting-started/first-lambda.md @@ -19,7 +19,7 @@ Before starting, ensure you've completed the [Installation](installation.md) gui - `MinimalLambda` NuGet package installed - Project file properly configured -- .NET 8 SDK installed +- .NET 10 SDK installed ## Step 1: Define Your Models diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md index 43e2f8c9..6f5b7fc6 100644 --- a/docs/getting-started/index.md +++ b/docs/getting-started/index.md @@ -13,7 +13,7 @@ Before you begin, ensure you have: -- **.NET 8 SDK or later** – [Download here](https://dotnet.microsoft.com/download) +- **.NET 10 SDK or later** – [Download here](https://dotnet.microsoft.com/download) - **C# 11 or later** – Required for source generators and language features - **Basic AWS Lambda knowledge** – Understanding of Lambda concepts (functions, events, execution model) - **AWS Account** – For deploying and testing (optional for local development) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 150ceefe..0e6df2a4 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -6,20 +6,27 @@ This guide walks you through installing `MinimalLambda` and configuring your pro Before you begin, ensure your development environment meets these requirements: -| Requirement | Minimum | Recommended | -| --- | --- | --- | -| .NET SDK | 11.0.100 | Latest .NET 11 patch | -| C# language version | 14 | 15.0 | -| IDE | .NET 11 SDK support | Latest | -| AWS CLI | 2.0+, optional | Latest | +| Requirement | Minimum | Recommended | +| ------------------- | ------------------- | ------------------------------- | +| .NET SDK | 10.0.100 | Latest .NET 10 or .NET 11 patch | +| C# language version | 14 | 15.0 | +| IDE | .NET 11 SDK support | Latest | +| AWS CLI | 2.0+, optional | Latest | !!! note "Compiler requirement" - Use the .NET 11 SDK with C# 14 or later for the source generator and interceptors. The repository builds with stable C# 15; the libraries still include assets for older target frameworks. + Use the .NET 10 SDK or later with C# 14 or later for the source generator and interceptors. The + repository builds with the .NET 11 SDK and stable C# 15. -The core packages include assets for `net8.0`, `net9.0`, `net10.0`, and `net11.0`. +The core packages include assets for `net10.0` and `net11.0`. Use the stable .NET 11 SDK and Microsoft.Extensions 11.0.0 or later when targeting `net11.0`. -Durable Execution currently targets `net10.0`. +Durable Execution targets `net10.0`. + +!!! warning "Upgrading from .NET 8 or .NET 9" + + Version 3.0.0 removes the `net8.0` and `net9.0` package assets. Change your project to + `net10.0` or `net11.0` before you upgrade. Version 2.x remains available for applications that + must stay on .NET 8 or .NET 9. ## Starting from a template @@ -86,8 +93,8 @@ Open your `.csproj` file and ensure these properties are set: Exe - - net8.0 + + net10.0 latest @@ -129,7 +136,7 @@ Here's a complete, minimal `.csproj` file for a Lambda function: Exe - net8.0 + net10.0 latest disable enable @@ -245,7 +252,7 @@ Envelope packages provide type-safe, strongly-typed event handling for specific **Solution**: 1. Verify your .NET SDK version: `dotnet --version` -2. Ensure it's .NET 8.0 or later +2. Ensure it's .NET 10.0 or later 3. Clean and rebuild: `dotnet clean && dotnet build` #### Missing OutputType diff --git a/docs/guides/configuration.md b/docs/guides/configuration.md index 47e9726f..f25cf298 100644 --- a/docs/guides/configuration.md +++ b/docs/guides/configuration.md @@ -408,7 +408,7 @@ For more complex rules implement `IValidatableObject` or add a custom validator. ## Troubleshooting **Configuration section not found** – Call `Exists()` on the section and ensure the file is copied to -`bin/Release/net8.0/publish`. +`bin/Release/net10.0/publish`. **`appsettings.json` missing in production** – Confirm `PreserveNewest` is set for each config file. diff --git a/docs/guides/handler-registration.md b/docs/guides/handler-registration.md index 0712e277..947f969b 100644 --- a/docs/guides/handler-registration.md +++ b/docs/guides/handler-registration.md @@ -240,7 +240,7 @@ var lambda = builder.Build(); **`InvalidOperationException: Unable to resolve service referenced by FromKeyedServicesAttribute`** -Keyed services require .NET 8+ DI. Ensure you registered the keyed instance using `AddKeyed*` and that the key is a supported primitive, enum, `string`, `Type`, or `null`. +Keyed services use the built-in DI container. Ensure you registered the keyed instance using `AddKeyed*` and that the key is a supported primitive, enum, `string`, `Type`, or `null`. ## Next Steps diff --git a/docs/guides/lifecycle-management.md b/docs/guides/lifecycle-management.md index 723c8522..4b321bd9 100644 --- a/docs/guides/lifecycle-management.md +++ b/docs/guides/lifecycle-management.md @@ -217,7 +217,7 @@ The `Properties` dictionary is backed by a thread-safe `ConcurrentDictionary` | Thread-safe dictionary for sharing data between handlers or from OnInit to invocation handlers | | `ElapsedTime` | `TimeSpan` | Time elapsed since the Lambda execution environment started | | `Region` | `string?` | AWS region where the function is running (from `AWS_REGION` env var) | -| `ExecutionEnvironment` | `string?` | Runtime identifier like `AWS_Lambda_dotnet8` (from `AWS_EXECUTION_ENV` env var) | +| `ExecutionEnvironment` | `string?` | Runtime identifier like `AWS_Lambda_dotnet10` (from `AWS_EXECUTION_ENV` env var) | | `FunctionName` | `string?` | Name of the Lambda function (from `AWS_LAMBDA_FUNCTION_NAME` env var) | | `FunctionMemorySize` | `int?` | Memory allocated to the function in MB (from `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` env var) | | `FunctionVersion` | `string?` | Version of the function being executed (from `AWS_LAMBDA_FUNCTION_VERSION` env var) | diff --git a/examples/MinimalLambda.Example.ClassMiddleware/MinimalLambda.Example.ClassMiddleware.csproj b/examples/MinimalLambda.Example.ClassMiddleware/MinimalLambda.Example.ClassMiddleware.csproj index c9012444..e659f0cd 100644 --- a/examples/MinimalLambda.Example.ClassMiddleware/MinimalLambda.Example.ClassMiddleware.csproj +++ b/examples/MinimalLambda.Example.ClassMiddleware/MinimalLambda.Example.ClassMiddleware.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 latest disable enable diff --git a/examples/MinimalLambda.Example.EventProcessor/MinimalLambda.Example.EventProcessor.csproj b/examples/MinimalLambda.Example.EventProcessor/MinimalLambda.Example.EventProcessor.csproj index e3bec06b..9ae918f0 100644 --- a/examples/MinimalLambda.Example.EventProcessor/MinimalLambda.Example.EventProcessor.csproj +++ b/examples/MinimalLambda.Example.EventProcessor/MinimalLambda.Example.EventProcessor.csproj @@ -1,7 +1,7 @@ Exe - net8.0 + net10.0 latest enable enable diff --git a/examples/MinimalLambda.Example.EventProcessor/README.md b/examples/MinimalLambda.Example.EventProcessor/README.md index b030e581..4bf191f3 100644 --- a/examples/MinimalLambda.Example.EventProcessor/README.md +++ b/examples/MinimalLambda.Example.EventProcessor/README.md @@ -3,13 +3,13 @@ Sample registrations for the optional `MinimalLambda.EventProcessing` package. `MapEventHandler` consumes the single invocation handler slot, so this project registers exactly one family per run and selects it with `EVENT_PROCESSOR_SAMPLE`. -| Value | Family | Shows | -| -------------- | ------ | ------------------------------------------------------------------ | -| `n1` | N1 | per-item DI scope and processing token | -| `n2` | N2 | complete source-item outcomes and success counts | +| Value | Family | Shows | +| -------------- | ------ | --------------------------------------------------------------------- | +| `n1` | N1 | per-item DI scope and processing token | +| `n2` | N2 | complete source-item outcomes and success counts | | `n3` | N3 | `onError` mapping failures and building an SQS partial batch response | -| `r1` | R1 | per-item `TResult` contributions through a typed delegate local | -| `r2` (default) | R2 | complete outcomes and retries for skipped/cancelled items | +| `r1` | R1 | per-item `TResult` contributions through a typed delegate local | +| `r2` (default) | R2 | complete outcomes and retries for skipped/cancelled items | The no-response family with a synchronous `onError` action is documented in the [event-processing guide](../../docs/features/event-processor.md#callback-families). @@ -25,7 +25,7 @@ The no-response family with a synchronous `onError` action is documented in the ## Prerequisites -- The .NET SDK selected by the repository's `global.json`, plus the .NET 8 runtime for local execution. +- The .NET SDK selected by the repository's `global.json`, plus the .NET 10 runtime for local execution. - AWS credentials configured locally if you plan to deploy. - Amazon.Lambda.Tools for command-line deployment. diff --git a/examples/MinimalLambda.Example.EventProcessor/aws-lambda-tools-defaults.json b/examples/MinimalLambda.Example.EventProcessor/aws-lambda-tools-defaults.json index 37cb089c..8ecdba14 100644 --- a/examples/MinimalLambda.Example.EventProcessor/aws-lambda-tools-defaults.json +++ b/examples/MinimalLambda.Example.EventProcessor/aws-lambda-tools-defaults.json @@ -8,7 +8,7 @@ "profile": "", "region": "", "configuration": "Release", - "function-runtime": "dotnet8", + "function-runtime": "dotnet10", "function-memory-size": 512, "function-timeout": 30, "function-handler": "MinimalLambda.Example.EventProcessor" diff --git a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj index af66e6dc..ad6c4ad5 100644 --- a/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj +++ b/examples/MinimalLambda.Example.Events/MinimalLambda.Example.Events.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 15.0 disable enable diff --git a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj index 4f68fea1..29179d6b 100644 --- a/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj +++ b/examples/MinimalLambda.Example.HelloWorld/MinimalLambda.Example.HelloWorld.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 latest disable enable diff --git a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj index 3fc1ddbe..886cc5cc 100644 --- a/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj +++ b/examples/MinimalLambda.Example.HelloWorldAot/MinimalLambda.Example.HelloWorldAot.csproj @@ -1,7 +1,7 @@ Exe - net8.0 + net10.0 latest disable enable diff --git a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj index c9012444..e659f0cd 100644 --- a/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj +++ b/examples/MinimalLambda.Example.Lifecycle/MinimalLambda.Example.Lifecycle.csproj @@ -1,7 +1,7 @@  Exe - net8.0 + net10.0 latest disable enable diff --git a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj index 2a44bb3b..fc621c4f 100644 --- a/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj +++ b/examples/MinimalLambda.Example.OpenTelemetry/MinimalLambda.Example.OpenTelemetry.csproj @@ -1,7 +1,7 @@  Exe - net9.0 + net10.0 15.0 enable enable diff --git a/mise.lock b/mise.lock index 634243c3..3e3c93c3 100644 --- a/mise.lock +++ b/mise.lock @@ -12,16 +12,6 @@ version = "10.0.404" backend = "core:dotnet" specifiers = ["10"] -[[tools.dotnet]] -version = "9.0.321" -backend = "core:dotnet" -specifiers = ["9"] - -[[tools.dotnet]] -version = "8.0.428" -backend = "core:dotnet" -specifiers = ["8"] - [[tools.node]] version = "24.22.3" backend = "core:node" diff --git a/mise.toml b/mise.toml index 4fd19c95..2db5c89f 100644 --- a/mise.toml +++ b/mise.toml @@ -7,8 +7,8 @@ jobs = 1 dotnet.isolated = false [tools] -# Keep the build SDK in global.json; older SDKs supply runtimes for the test matrix. -dotnet = ["{{ read_json(path='global.json')['sdk']['version'] }}", "10", "9", "8"] +# Keep the build SDK in global.json; the other SDK supplies the net10 runtime for the test matrix. +dotnet = ["{{ read_json(path='global.json')['sdk']['version'] }}", "10"] node = "24" python = "3.13" uv = "latest" diff --git a/scripts/test-package-compatibility.sh b/scripts/test-package-compatibility.sh index 329720b0..802698ea 100755 --- a/scripts/test-package-compatibility.sh +++ b/scripts/test-package-compatibility.sh @@ -216,7 +216,7 @@ for filename, (package_id, version, kind) in expected.items(): ) if kind in {"core", "abstractions", "event"}: - assert_libs(names, package_id, ("net8.0", "net9.0", "net10.0", "net11.0")) + assert_libs(names, package_id, ("net10.0", "net11.0")) else: assert_libs(names, package_id, ("net10.0",)) @@ -250,7 +250,7 @@ for filename, (package_id, version, kind) in expected.items(): if aws.attrib.get("exclude") != "Build,Analyzers": raise AssertionError(f"durable AWS dependency exclusion mismatch: {aws.attrib}") elif kind == "event": - if {group.attrib.get("targetFramework") for group in dependency_groups} != {"net8.0", "net9.0", "net10.0", "net11.0"}: + if {group.attrib.get("targetFramework") for group in dependency_groups} != {"net10.0", "net11.0"}: raise AssertionError("event dependency TFMs mismatch") for group in dependency_groups: dependencies = children(group, "dependency") @@ -260,7 +260,7 @@ for filename, (package_id, version, kind) in expected.items(): raise AssertionError("event must propagate core analyzer assets to optional-only consumers") elif kind == "core": if {group.attrib.get("targetFramework") for group in dependency_groups} != { - "net8.0", "net9.0", "net10.0", "net11.0" + "net10.0", "net11.0" }: raise AssertionError(f"{filename}: core dependency TFMs mismatch") for group in dependency_groups: @@ -394,7 +394,7 @@ core_only_status=$? set -e [ "$core_only_status" -ne 0 ] || fail "core-only exposed event APIs" grep -q 'CS0234' "$LOGS/core-only-negative.log" || fail "core-only negative failed unexpectedly" -for tfm in net8.0 net9.0 net11.0; do +for tfm in net10.0 net11.0; do run_logged "build-event-$tfm" dotnet build "$EVENT" -c Release -f "$tfm" --no-restore /p:CorePackageVersion="$CORE_VERSION" assert_warning_free "$LOGS/build-event-$tfm.log" done diff --git a/skills/minimal-lambda/references/client-project-setup.md b/skills/minimal-lambda/references/client-project-setup.md index 390533ab..cc707e2b 100644 --- a/skills/minimal-lambda/references/client-project-setup.md +++ b/skills/minimal-lambda/references/client-project-setup.md @@ -86,11 +86,11 @@ Keep `MinimalLambda.Testing` version aligned with `MinimalLambda`. ## Project file basics Use the .NET 11 SDK and stable `LangVersion` `15.0` for the current source generator and -interceptors. Older target frameworks remain supported; preview language mode is not required. +interceptors. Target `net10.0` or `net11.0`. Preview language mode is not required. ```xml - net8.0 + net10.0 enable enable latest diff --git a/skills/minimal-lambda/references/repo-workflow.md b/skills/minimal-lambda/references/repo-workflow.md index 91fdb212..8147574a 100644 --- a/skills/minimal-lambda/references/repo-workflow.md +++ b/skills/minimal-lambda/references/repo-workflow.md @@ -15,7 +15,7 @@ Follow root `AGENTS.md`: ## Commands The repository requires the stable .NET 11 SDK, version 11.0.100 or later. -Libraries target .NET 8, 9, 10, and 11; Durable Execution targets .NET 10. +Libraries target .NET 10 and 11; Durable Execution targets .NET 10. For a new checkout on a developer workstation or in an AI agent's remote development environment, use mise 2026.11.8 or later: @@ -28,7 +28,7 @@ mise exec -- dotnet build --configuration Release mise exec -- task test:all ``` -`mise.toml` reads the SDK version from `global.json` and installs older SDKs in the same .NET root +`mise.toml` reads the SDK version from `global.json` and installs the .NET 10 SDK in the same .NET root for the test matrix. Install sequentially with the configured `jobs = 1` to avoid SDK installer races. `mise.lock` pins resolved tool versions. The setup task restores npm, NuGet, local .NET tools, and the uv documentation environment. Keep existing Taskfiles as the command diff --git a/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj index e4fd7fcc..b77dd6f2 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Alb/MinimalLambda.Envelopes.Alb.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj index 4aac55c4..0d8ce51f 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.ApiGateway/MinimalLambda.Envelopes.ApiGateway.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj index 3ecc47bb..33548612 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.CloudWatchLogs/MinimalLambda.Envelopes.CloudWatchLogs.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj index 6c35db73..ce74bbcd 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kafka/MinimalLambda.Envelopes.Kafka.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj index 274763e1..a1037941 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Kinesis/MinimalLambda.Envelopes.Kinesis.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj index 41f72a8f..f4828e26 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.KinesisFirehose/MinimalLambda.Envelopes.KinesisFirehose.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj index 7f9879a4..7a1e3f39 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sns/MinimalLambda.Envelopes.Sns.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj index fe734952..a5f20d9a 100644 --- a/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes.Sqs/MinimalLambda.Envelopes.Sqs.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/Envelopes/MinimalLambda.Envelopes/MinimalLambda.Envelopes.csproj b/src/Envelopes/MinimalLambda.Envelopes/MinimalLambda.Envelopes.csproj index ddd9a077..6bc88517 100644 --- a/src/Envelopes/MinimalLambda.Envelopes/MinimalLambda.Envelopes.csproj +++ b/src/Envelopes/MinimalLambda.Envelopes/MinimalLambda.Envelopes.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable @@ -12,16 +12,6 @@ Core components for MinimalLambda envelopes README.md - - - $(NoWarn);AD0001 - diff --git a/src/MinimalLambda.Abstractions/Core/ILambdaLifecycleContext.cs b/src/MinimalLambda.Abstractions/Core/ILambdaLifecycleContext.cs index eb935f5d..be2b66a6 100644 --- a/src/MinimalLambda.Abstractions/Core/ILambdaLifecycleContext.cs +++ b/src/MinimalLambda.Abstractions/Core/ILambdaLifecycleContext.cs @@ -38,7 +38,7 @@ public interface ILambdaLifecycleContext /// Gets the runtime identifier, or null if not set. /// /// This value is read from the AWS_EXECUTION_ENV environment variable, which is - /// prefixed by AWS_Lambda_ (for example, AWS_Lambda_dotnet8). This environment + /// prefixed by AWS_Lambda_ (for example, AWS_Lambda_dotnet10). This environment /// variable is not defined for OS-only runtimes. /// string? ExecutionEnvironment { get; } diff --git a/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj index 8d2cd3e8..6ea785f2 100644 --- a/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj +++ b/src/MinimalLambda.Abstractions/MinimalLambda.Abstractions.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/MinimalLambda.EventProcessing/MinimalLambda.EventProcessing.csproj b/src/MinimalLambda.EventProcessing/MinimalLambda.EventProcessing.csproj index 3ae3eac2..8b32c19c 100644 --- a/src/MinimalLambda.EventProcessing/MinimalLambda.EventProcessing.csproj +++ b/src/MinimalLambda.EventProcessing/MinimalLambda.EventProcessing.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable diff --git a/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj index af10f6ba..1489517b 100644 --- a/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj +++ b/src/MinimalLambda.OpenTelemetry/MinimalLambda.OpenTelemetry.csproj @@ -1,6 +1,6 @@  - net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable @@ -13,16 +13,6 @@ README.md $(InterceptorsNamespaces);MinimalLambda.Generated - - - $(NoWarn);AD0001 - diff --git a/src/MinimalLambda.Templates/MinimalLambda.Templates.csproj b/src/MinimalLambda.Templates/MinimalLambda.Templates.csproj index d1ceb53c..755b983a 100644 --- a/src/MinimalLambda.Templates/MinimalLambda.Templates.csproj +++ b/src/MinimalLambda.Templates/MinimalLambda.Templates.csproj @@ -1,6 +1,6 @@ - net8.0 + net10.0 MinimalLambda.Templates MinimalLambda Templates dotnet new templates for MinimalLambda AWS Lambda projects. diff --git a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index e71c0524..0387bf54 100644 --- a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net8.0 + net10.0 latest enable enable @@ -21,6 +21,6 @@ - + \ No newline at end of file diff --git a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/README.md b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/README.md index f6d51f32..8890a148 100644 --- a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/README.md +++ b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/README.md @@ -95,8 +95,8 @@ Add or update these entries at the repository root: ```xml - - + + diff --git a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index abaf517d..1b082095 100644 --- a/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/src/MinimalLambda.Templates/templates/mlambda-aot/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,7 +8,7 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet8", + "function-runtime": "dotnet10", "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1", diff --git a/src/MinimalLambda.Templates/templates/mlambda-aot/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/src/MinimalLambda.Templates/templates/mlambda-aot/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index a0abfcdd..61576eb6 100644 --- a/src/MinimalLambda.Templates/templates/mlambda-aot/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/src/MinimalLambda.Templates/templates/mlambda-aot/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net8.0 + net10.0 enable enable false @@ -8,7 +8,7 @@ - + all diff --git a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 12e071c0..57f3fdc7 100644 --- a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net8.0 + net10.0 latest enable enable @@ -15,6 +15,6 @@ - + \ No newline at end of file diff --git a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/README.md b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/README.md index 4e6a611e..755c5377 100644 --- a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/README.md +++ b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/README.md @@ -60,8 +60,8 @@ Add or update these entries at the repository root: ```xml - - + + diff --git a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index eae7eab8..6bf143ab 100644 --- a/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/src/MinimalLambda.Templates/templates/mlambda/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,7 +8,7 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet8", + "function-runtime": "dotnet10", "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1" diff --git a/src/MinimalLambda.Templates/templates/mlambda/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/src/MinimalLambda.Templates/templates/mlambda/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index a0abfcdd..61576eb6 100644 --- a/src/MinimalLambda.Templates/templates/mlambda/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/src/MinimalLambda.Templates/templates/mlambda/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net8.0 + net10.0 enable enable false @@ -8,7 +8,7 @@ - + all diff --git a/src/MinimalLambda.Testing/MinimalLambda.Testing.csproj b/src/MinimalLambda.Testing/MinimalLambda.Testing.csproj index de2e8b86..17d7ac80 100644 --- a/src/MinimalLambda.Testing/MinimalLambda.Testing.csproj +++ b/src/MinimalLambda.Testing/MinimalLambda.Testing.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable @@ -14,16 +14,6 @@ false $(NoWarn);IL2026;IL2087;IL2091;IL3050;IL3051;IL2075 - - - $(NoWarn);AD0001 - diff --git a/src/MinimalLambda/MinimalLambda.csproj b/src/MinimalLambda/MinimalLambda.csproj index c096fb35..58c351d9 100644 --- a/src/MinimalLambda/MinimalLambda.csproj +++ b/src/MinimalLambda/MinimalLambda.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable @@ -19,16 +19,6 @@ - - - $(NoWarn);AD0001 - diff --git a/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj b/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj index 6ebd7dff..be856eaa 100644 --- a/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj +++ b/tests/MinimalLambda.Envelopes.UnitTests/MinimalLambda.Envelopes.UnitTests.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.EventProcessing.UnitTests/MinimalLambda.EventProcessing.UnitTests.csproj b/tests/MinimalLambda.EventProcessing.UnitTests/MinimalLambda.EventProcessing.UnitTests.csproj index d89ceb50..6e7e42db 100644 --- a/tests/MinimalLambda.EventProcessing.UnitTests/MinimalLambda.EventProcessing.UnitTests.csproj +++ b/tests/MinimalLambda.EventProcessing.UnitTests/MinimalLambda.EventProcessing.UnitTests.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 enable enable false diff --git a/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj b/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj index 252df378..1ae81f84 100644 --- a/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj +++ b/tests/MinimalLambda.OpenTelemetry.UnitTests/MinimalLambda.OpenTelemetry.UnitTests.csproj @@ -1,6 +1,6 @@ - net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiagnosticTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiagnosticTests.cs index 0f10413f..630fe6c3 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiagnosticTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiagnosticTests.cs @@ -1,4 +1,3 @@ -#if MINIMALLAMBDA_DURABLE using AwesomeAssertions; using Microsoft.CodeAnalysis; using MinimalLambda.SourceGenerators.Models; @@ -493,4 +492,3 @@ private static Diagnostic[] Generate(string source) return driver.GetRunResult().Diagnostics.ToArray(); } } -#endif diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiscoveryTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiscoveryTests.cs index ef7eb9ac..0ee66ccb 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiscoveryTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerDiscoveryTests.cs @@ -1,4 +1,3 @@ -#if MINIMALLAMBDA_DURABLE using AwesomeAssertions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -210,4 +209,3 @@ private static InvocationExpressionSyntax FindInvocation( .Single(invocation => invocation.Expression.ToString().EndsWith(methodName, StringComparison.Ordinal)); } -#endif diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerEmitterTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerEmitterTests.cs index 77ea4b68..4b2ed497 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerEmitterTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableHandlerEmitterTests.cs @@ -1,4 +1,3 @@ -#if MINIMALLAMBDA_DURABLE using AwesomeAssertions; using Microsoft.CodeAnalysis; @@ -345,4 +344,3 @@ private static string GetDurableSource(GeneratorDriverRunResult result) => .SourceText .ToString(); } -#endif diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableSerializerDiagnosticTests.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableSerializerDiagnosticTests.cs index ee8fe10f..faf0bf5a 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/DurableSerializerDiagnosticTests.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/DurableSerializerDiagnosticTests.cs @@ -1,4 +1,3 @@ -#if MINIMALLAMBDA_DURABLE using AwesomeAssertions; namespace MinimalLambda.SourceGenerators.UnitTests; @@ -34,4 +33,3 @@ protected AppJsonContext() : base(null) { } driver.GetRunResult().Diagnostics.Should().BeEmpty(); } } -#endif diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs index c1ec7896..6e3959bd 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/GeneratorTestHelpers.cs @@ -2,9 +2,7 @@ using System.Diagnostics.CodeAnalysis; using System.Text.RegularExpressions; using Amazon.Lambda.Core; -#if MINIMALLAMBDA_DURABLE using Amazon.Lambda.DurableExecution; -#endif using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; using AwesomeAssertions; @@ -147,12 +145,8 @@ internal static (GeneratorDriver driver, Compilation compilation) GenerateFromSo [ #if NET11_0_OR_GREATER .. Net110.References.All.ToList(), -#elif NET10_0 - .. Net100.References.All.ToList(), -#elif NET9_0 - .. Net90.References.All.ToList(), #else - .. Net80.References.All.ToList(), + .. Net100.References.All.ToList(), #endif MetadataReference.CreateFromFile(typeof(LambdaApplication).Assembly.Location), MetadataReference.CreateFromFile(typeof(EventHandlerOptions).Assembly.Location), @@ -167,7 +161,6 @@ .. Net80.References.All.ToList(), MetadataReference.CreateFromFile(typeof(ILambdaInvocationContext).Assembly.Location), ]; -#if MINIMALLAMBDA_DURABLE if (includeDurableReferences) { references.Add( @@ -177,7 +170,6 @@ .. Net80.References.All.ToList(), references.Add( MetadataReference.CreateFromFile(typeof(IDurableContext).Assembly.Location)); } -#endif var compilationOptions = new CSharpCompilationOptions( OutputKind.ConsoleApplication, diff --git a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj index e61dc093..ca105cfe 100644 --- a/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj +++ b/tests/MinimalLambda.SourceGenerators.UnitTests/MinimalLambda.SourceGenerators.UnitTests.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 latest enable enable @@ -16,8 +16,6 @@ - - @@ -38,8 +36,7 @@ + Include="..\..\src\MinimalLambda.DurableExecution\MinimalLambda.DurableExecution.csproj" /> @@ -49,7 +46,6 @@ **/Scriban/**/*.cs - $(DefineConstants);MINIMALLAMBDA_DURABLE diff --git a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.DiLambda/MinimalLambda.Testing.UnitTests.DiLambda.csproj b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.DiLambda/MinimalLambda.Testing.UnitTests.DiLambda.csproj index a3bcf8f3..037905cf 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.DiLambda/MinimalLambda.Testing.UnitTests.DiLambda.csproj +++ b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.DiLambda/MinimalLambda.Testing.UnitTests.DiLambda.csproj @@ -1,7 +1,7 @@  Exe - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.EventProcessorLambda/MinimalLambda.Testing.UnitTests.EventProcessorLambda.csproj b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.EventProcessorLambda/MinimalLambda.Testing.UnitTests.EventProcessorLambda.csproj index 74f6d901..aeb744a1 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.EventProcessorLambda/MinimalLambda.Testing.UnitTests.EventProcessorLambda.csproj +++ b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.EventProcessorLambda/MinimalLambda.Testing.UnitTests.EventProcessorLambda.csproj @@ -1,7 +1,7 @@ Exe - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoEventLambda/MinimalLambda.Testing.UnitTests.NoEventLambda.csproj b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoEventLambda/MinimalLambda.Testing.UnitTests.NoEventLambda.csproj index bcf1c46d..1701f8fa 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoEventLambda/MinimalLambda.Testing.UnitTests.NoEventLambda.csproj +++ b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoEventLambda/MinimalLambda.Testing.UnitTests.NoEventLambda.csproj @@ -1,7 +1,7 @@  Exe - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoResponseLambda/MinimalLambda.Testing.UnitTests.NoResponseLambda.csproj b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoResponseLambda/MinimalLambda.Testing.UnitTests.NoResponseLambda.csproj index bcf1c46d..1701f8fa 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoResponseLambda/MinimalLambda.Testing.UnitTests.NoResponseLambda.csproj +++ b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.NoResponseLambda/MinimalLambda.Testing.UnitTests.NoResponseLambda.csproj @@ -1,7 +1,7 @@  Exe - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.SimpleLambda/MinimalLambda.Testing.UnitTests.SimpleLambda.csproj b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.SimpleLambda/MinimalLambda.Testing.UnitTests.SimpleLambda.csproj index bcf1c46d..1701f8fa 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.SimpleLambda/MinimalLambda.Testing.UnitTests.SimpleLambda.csproj +++ b/tests/MinimalLambda.Testing.UnitTests/Lambdas/MinimalLambda.Testing.UnitTests.SimpleLambda/MinimalLambda.Testing.UnitTests.SimpleLambda.csproj @@ -1,7 +1,7 @@  Exe - net8.0;net9.0;net10.0 + net10.0;net11.0 15.0 enable enable diff --git a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DurableLambdaTests.cs b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DurableLambdaTests.cs index 39df8310..27093cec 100644 --- a/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DurableLambdaTests.cs +++ b/tests/MinimalLambda.Testing.UnitTests/Tests/MinimalLambda.Testing.UnitTests/DurableLambdaTests.cs @@ -1,4 +1,3 @@ -#if NET10_0_OR_GREATER using System.Text.Json; using Microsoft.Extensions.DependencyInjection; @@ -103,4 +102,3 @@ private static void AssertMiddlewareProbe(LambdaApplicationFactory - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 enable enable false @@ -41,8 +41,7 @@ + Include="..\..\Lambdas\MinimalLambda.Testing.UnitTests.DurableLambda\MinimalLambda.Testing.UnitTests.DurableLambda.csproj" /> { - { "AWS_EXECUTION_ENV", "AWS_Lambda_dotnet8" }, + { "AWS_EXECUTION_ENV", "AWS_Lambda_dotnet10" }, }; var configuration = new ConfigurationBuilder().AddInMemoryCollection(configValues).Build(); @@ -163,7 +163,7 @@ internal void Create_ReadsExecutionEnvironmentFromConfiguration( var result = factory.Create(new Dictionary(), CancellationToken.None); // Assert - result.ExecutionEnvironment.Should().Be("AWS_Lambda_dotnet8"); + result.ExecutionEnvironment.Should().Be("AWS_Lambda_dotnet10"); } [Theory] @@ -451,7 +451,7 @@ internal void Create_WithAllConfigurationValues_PopulatesAllProperties( var configValues = new Dictionary { { "AWS_REGION", "us-east-1" }, - { "AWS_EXECUTION_ENV", "AWS_Lambda_dotnet8" }, + { "AWS_EXECUTION_ENV", "AWS_Lambda_dotnet10" }, { "AWS_LAMBDA_FUNCTION_NAME", "my-lambda-function" }, { "AWS_LAMBDA_FUNCTION_MEMORY_SIZE", "1024" }, { "AWS_LAMBDA_FUNCTION_VERSION", "$LATEST" }, @@ -472,7 +472,7 @@ internal void Create_WithAllConfigurationValues_PopulatesAllProperties( // Assert result.Region.Should().Be("us-east-1"); - result.ExecutionEnvironment.Should().Be("AWS_Lambda_dotnet8"); + result.ExecutionEnvironment.Should().Be("AWS_Lambda_dotnet10"); result.FunctionName.Should().Be("my-lambda-function"); result.FunctionMemorySize.Should().Be(1024); result.FunctionVersion.Should().Be("$LATEST"); diff --git a/tests/MinimalLambda.UnitTests/Core/Context/LambdaLifecycleContextTests.cs b/tests/MinimalLambda.UnitTests/Core/Context/LambdaLifecycleContextTests.cs index 56c46571..75efcfbc 100644 --- a/tests/MinimalLambda.UnitTests/Core/Context/LambdaLifecycleContextTests.cs +++ b/tests/MinimalLambda.UnitTests/Core/Context/LambdaLifecycleContextTests.cs @@ -195,7 +195,7 @@ internal void ExecutionEnvironment_ReturnsValueFromContextCore( CancellationToken cancellationToken) { // Arrange - const string expectedValue = "AWS_Lambda_dotnet8"; + const string expectedValue = "AWS_Lambda_dotnet10"; var stopwatch = new LifetimeStopwatch(); var contextCore = new LambdaLifecycleContext.Core { diff --git a/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj index 1b9547ee..190a03bc 100644 --- a/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj +++ b/tests/MinimalLambda.UnitTests/MinimalLambda.UnitTests.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 enable enable false diff --git a/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj b/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj index 56306e35..39c2f2be 100644 --- a/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj +++ b/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj @@ -2,7 +2,7 @@ $(CorePackageVersion) Exe - net8.0;net9.0;net10.0;net11.0 + net10.0;net11.0 15.0 enable enable From a30ec7137b8ebb372a7025b39b22e274393cffa3 Mon Sep 17 00:00:00 2001 From: Jonas Ha Date: Fri, 4 Dec 2026 17:22:10 -0500 Subject: [PATCH 2/2] fix(tests): make package compatibility fixtures restorable Guard package references that use optional version properties. A plain restore of the repository no longer fails with NU1015 when the compatibility properties are not set. --- .../CoreOnlyConsumer/CoreOnlyConsumer.csproj | 2 +- .../EventProcessorConsumer/EventProcessorConsumer.csproj | 3 ++- tests/package-compatibility/TypedConsumer/TypedConsumer.csproj | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/package-compatibility/CoreOnlyConsumer/CoreOnlyConsumer.csproj b/tests/package-compatibility/CoreOnlyConsumer/CoreOnlyConsumer.csproj index 1f7850e6..4c81e2db 100644 --- a/tests/package-compatibility/CoreOnlyConsumer/CoreOnlyConsumer.csproj +++ b/tests/package-compatibility/CoreOnlyConsumer/CoreOnlyConsumer.csproj @@ -1 +1 @@ -net10.0Exe15.0enableenabletrue \ No newline at end of file +net10.0Exe15.0enableenabletrue \ No newline at end of file diff --git a/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj b/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj index 39c2f2be..e1a864ed 100644 --- a/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj +++ b/tests/package-compatibility/EventProcessorConsumer/EventProcessorConsumer.csproj @@ -12,7 +12,8 @@ - + \ No newline at end of file diff --git a/tests/package-compatibility/TypedConsumer/TypedConsumer.csproj b/tests/package-compatibility/TypedConsumer/TypedConsumer.csproj index 1ab2e8f0..975fb4f1 100644 --- a/tests/package-compatibility/TypedConsumer/TypedConsumer.csproj +++ b/tests/package-compatibility/TypedConsumer/TypedConsumer.csproj @@ -14,6 +14,7 @@ - + \ No newline at end of file