Skip to content

Commit 658c21a

Browse files
committed
Deprecate .NET 6 support
- Remove net6.0 from TargetFrameworks in Directory.Build.props files - Remove all #if NET6_0 conditional compilation blocks - Simplify #if NET8_0_OR_GREATER blocks by removing .NET 6 fallback code - Update documentation to reflect .NET 8 only support - Fix e2e test projects that were still targeting .NET 6 All 703 core unit tests pass. Breaking change: .NET 6 projects need to upgrade to .NET 8. Fixes #749
1 parent e601109 commit 658c21a

28 files changed

Lines changed: 21 additions & 137 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Powertools for AWS Lambda (.NET) provides three core utilities:
3333

3434
### Installation
3535

36-
The Powertools for AWS Lambda (.NET) utilities (.NET 6 and .NET 8) are available as NuGet packages. You can install the packages from [NuGet Gallery](https://www.nuget.org/packages?q=AWS+Lambda+Powertools*) or from Visual Studio editor by searching `AWS.Lambda.Powertools*` to see various utilities available.
36+
The Powertools for AWS Lambda (.NET) utilities (.NET 8) are available as NuGet packages. You can install the packages from [NuGet Gallery](https://www.nuget.org/packages?q=AWS+Lambda+Powertools*) or from Visual Studio editor by searching `AWS.Lambda.Powertools*` to see various utilities available.
3737

3838
* [AWS.Lambda.Powertools.Logging](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Logging):
3939

@@ -61,7 +61,7 @@ The Powertools for AWS Lambda (.NET) utilities (.NET 6 and .NET 8) are available
6161

6262
## Examples
6363

64-
We have provided examples focused specifically on each of the utilities. Each solution comes with an AWS Serverless Application Model (AWS SAM) templates to run your functions as a Zip package using the AWS Lambda .NET 6 or .NET 8 managed runtime; or as a container package using the AWS base images for .NET.
64+
We have provided examples focused specifically on each of the utilities. Each solution comes with an AWS Serverless Application Model (AWS SAM) templates to run your functions as a Zip package using the AWS Lambda .NET 8 managed runtime; or as a container package using the AWS base images for .NET.
6565

6666
* **[Logging example](examples/Logging/)**
6767
* **[Metrics example](examples/Metrics/)**

docs/core/tracing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To enable active tracing on an AWS Serverless Application Model (AWS SAM) AWS::S
4444
Type: AWS::Serverless::Function
4545
Properties:
4646
...
47-
Runtime: dotnet6.0
47+
Runtime: dotnet8.0
4848

4949
Tracing: Active
5050
Environment:

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Powertools for AWS Lambda (.NET)
1010
Powertools for AWS Lambda (.NET) (which from here will be referred as Powertools) is a suite of utilities for [AWS Lambda](https://aws.amazon.com/lambda/) functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more.
1111

1212
!!! info
13-
**Supports .NET 6 and .NET 8 runtimes**
13+
**Supports .NET 8 runtime**
1414

1515
???+ tip
1616
Powertools is also available for [Python](https://docs.powertools.aws.dev/lambda/python/){target="_blank"}, [Java](https://docs.powertools.aws.dev/lambda/java/){target="_blank"}, and [TypeScript](https://docs.powertools.aws.dev/lambda/typescript/latest/){target="_blank"}.
@@ -71,14 +71,14 @@ We have provided you with a custom template for the Serverless Application Model
7171
To use the SAM CLI, you need the following tools.
7272

7373
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
74-
* .NET 6.0 (LTS) - [Install .NET 6.0](https://www.microsoft.com/net/download)
74+
* .NET 8.0 (LTS) - [Install .NET 8.0](https://www.microsoft.com/net/download)
7575
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
7676

77-
Once you have SAM CLI installed, follow the these steps to initialize a .NET 6 project using Powertools for AWS (.NET)
77+
Once you have SAM CLI installed, follow the these steps to initialize a .NET 8 project using Powertools for AWS (.NET)
7878

7979
1. Run the following command in your command line
8080
```bash
81-
sam init -r dotnet6
81+
sam init -r dotnet8
8282
```
8383
2. Select option 1 as your template source
8484

docs/roadmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Updating metrics implementation to support latest EMF specifications and improve
4646
Ensuring enterprise-grade security and compatibility with latest .NET developments.
4747

4848
- [ ] .NET 10 support from day one
49-
- [ ] Deprecation path for .NET 6
49+
- [x] .NET 6 deprecation completed
5050
- [ ] Scorecard implementation
5151
- [ ] Security compliance checks on our pipeline
5252
- [ ] All utilities with end-to-end tests in our pipeline

examples/BatchProcessing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To use the AWS SAM CLI, you need the following tools.
2828
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2929

3030
You will need the following for local testing.
31-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
31+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
3232

3333
To build and deploy your application for the first time, run the following in your shell. Make sure the `template.yaml` file is in your current directory:
3434

examples/Idempotency/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use the AWS SAM CLI, you need the following tools.
2525
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2626

2727
You will need the following for local testing.
28-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
28+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
2929

3030
To build and deploy your application for the first time, run the following in your shell. Make sure the `template.yaml` file is in your current directory:
3131

examples/Logging/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use the AWS SAM CLI, you need the following tools.
2525
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2626

2727
You will need the following for local testing.
28-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
28+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
2929

3030
To build and deploy your application for the first time, run the following in your shell. Make sure the `template.yaml` file is in your current directory:
3131

examples/Metrics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use the AWS SAM CLI, you need the following tools.
2525
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2626

2727
You will need the following for local testing.
28-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
28+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
2929

3030
To build and deploy your application for the first time, run the following in your shell. Make sure the `template.yaml` file is in your current directory:
3131

examples/Parameters/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use the AWS SAM CLI, you need the following tools.
2525
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2626

2727
You will need the following for local testing.
28-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
28+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
2929

3030
To build and deploy your application for the first time, run the following in your shell. Make sure the `template.yaml` file is in your current directory:
3131

examples/ServerlessApi/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To use the AWS SAM CLI, you need the following tools.
2727
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
2828

2929
You will need the following for local testing.
30-
* .NET 6.0 - [Install .NET 6.0](https://www.microsoft.com/net/download)
30+
* .NET 8.0 - [Install .NET 8.0](https://www.microsoft.com/net/download)
3131

3232
To build and deploy your application for the first time, run the following in your shell. Make sure the `serverless.template` file is in your current directory:
3333

0 commit comments

Comments
 (0)