diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index f0d4e4c..7acc754 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -20,9 +20,6 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
- 3.1.x
- 6.0.x
- 7.0.x
8.0.x
- name: Build
run: dotnet build src
@@ -55,16 +52,8 @@ jobs:
strategy:
matrix:
sdk:
- - 6.0.x
- - 7.x
- 8.x
- # https://github.com/microsoft/MSBuildSdks/issues/412
- # sdk: [6.0.x, 7.0.x]
include:
- - sdk: 6.0.x
- tfm: net6.0
- - sdk: 7.x
- tfm: net7.0
- sdk: 8.x
tfm: net8.0
runs-on: ubuntu-latest
@@ -102,7 +91,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 6.0.x
+ dotnet-version: 8.0.x
- name: Publish unity packages to npm
shell: pwsh
run: |
diff --git a/README.md b/README.md
index 71b83bd..163bff9 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Jab provides a [C# Source Generator](https://devblogs.microsoft.com/dotnet/intro
- Clean stack traces:

- Readable generated code:

- Registration validation. Container configuration issues become compiler errors:

-- Incremental generation, .NET 5/6/7/8 SDK support, .NET Standard 2.0 support, [Unity support](README.md#Unity-installation)
+- Incremental generation, Modern .NET SDK support, .NET Standard 2.0 support, [Unity support](README.md#Unity-installation)
## Example
@@ -169,18 +169,10 @@ When the scope is disposed all `IDisposable` and `IAsyncDisposable` services tha
### Generic registration attributes
-You can use generic attributes to register services if your project targets `net7.0` or `net6.0` and has `LangVersion` set to preview.
-```xml
-
-
-
- net7.0
-
+You can use generic attributes to register services if your project targets a framework compatible with C# 11 or greater. See [C# language versioning](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-versioning#defaults) for more details.
-
-```
Generic attributes allow declaration to be more compact by avoiding the `typeof` calls:
diff --git a/src/Jab.FunctionalTests.Common/Jab.FunctionalTest.props b/src/Jab.FunctionalTests.Common/Jab.FunctionalTest.props
index 2183623..4ad7d3a 100644
--- a/src/Jab.FunctionalTests.Common/Jab.FunctionalTest.props
+++ b/src/Jab.FunctionalTests.Common/Jab.FunctionalTest.props
@@ -1,7 +1,7 @@
- netcoreapp3.1;net6.0;net7.0;net8.0;netstandard2.0
+ net8.0;netstandard2.0
$(DefaultFunctionalTestTargetFrameworks);net472
$(DefaultFunctionalTestTargetFrameworks)
false
diff --git a/src/Jab.FunctionalTests.MEDI/Jab.FunctionalTests.MEDI.csproj b/src/Jab.FunctionalTests.MEDI/Jab.FunctionalTests.MEDI.csproj
index bf99528..f9d8556 100644
--- a/src/Jab.FunctionalTests.MEDI/Jab.FunctionalTests.MEDI.csproj
+++ b/src/Jab.FunctionalTests.MEDI/Jab.FunctionalTests.MEDI.csproj
@@ -9,9 +9,6 @@
-
-
-
diff --git a/src/Jab.Tests/Jab.Tests.csproj b/src/Jab.Tests/Jab.Tests.csproj
index e1fb06a..9c389ca 100644
--- a/src/Jab.Tests/Jab.Tests.csproj
+++ b/src/Jab.Tests/Jab.Tests.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1;net6.0;net7.0;net8.0
+ net8.0
diff --git a/src/samples/ConsoleSample/ConsoleSample.csproj b/src/samples/ConsoleSample/ConsoleSample.csproj
index a27f694..54f1db7 100644
--- a/src/samples/ConsoleSample/ConsoleSample.csproj
+++ b/src/samples/ConsoleSample/ConsoleSample.csproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net8.0
false