Skip to content

Commit 114c2f0

Browse files
martincostellomesMessSaibamen
authored
Drop .NET 6 (#3183)
Drop support for .NET 6. Resolves #3087. Co-authored-by: mesMess <mesMess@users.noreply.github.com> Co-authored-by: Adam Stachowicz <adam.stachowicz@fingo.net>
1 parent 730b315 commit 114c2f0

17 files changed

Lines changed: 12 additions & 466 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
4040
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
4141
<UseArtifactsOutput>true</UseArtifactsOutput>
42-
<VersionPrefix>7.3.3</VersionPrefix>
42+
<VersionPrefix>8.0.0</VersionPrefix>
4343
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
4444
</PropertyGroup>
4545
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' != '' AND '$(DEPENDABOT_JOB_ID)' == '' ">

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ Once your application has been setup with Swashbuckle (see [Getting Started](#ge
16311631

16321632
It's packaged as a [.NET Tool](https://learn.microsoft.com/dotnet/core/tools/global-tools) that can be installed and used via the dotnet SDK.
16331633

1634-
> :warning: The tool needs to load your Startup DLL and its dependencies at runtime. Therefore, you should use a version of the `dotnet` SDK that is compatible with your application. For example, if your app targets `net6.0`, then you should use version 6.0.xxx of the SDK to run the CLI tool. If it targets `net8.0`, then you should use version 8.0.xxx of the SDK and so on.
1634+
> :warning: The tool needs to load your Startup DLL and its dependencies at runtime. Therefore, you should use a version of the `dotnet` SDK that is compatible with your application. For example, if your app targets `net8.0`, then you should use version 8.0.xxx of the SDK to run the CLI tool. If it targets `net9.0`, then you should use version 9.0.xxx of the SDK and so on.
16351635

16361636
#### Using the tool with the .NET SDK
16371637

src/Swashbuckle.AspNetCore.Annotations/Swashbuckle.AspNetCore.Annotations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<NoWarn>$(NoWarn);1591</NoWarn>
99
<PackageTags>swagger;documentation;discovery;help;webapi;aspnet;aspnetcore;annotations</PackageTags>
1010
<SignAssembly>true</SignAssembly>
11-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
11+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1212
</PropertyGroup>
1313

1414
<ItemGroup>

src/Swashbuckle.AspNetCore.ApiTesting.Xunit/Swashbuckle.AspNetCore.ApiTesting.Xunit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<IsTestProject>false</IsTestProject>
88
<NoWarn>$(NoWarn);1591</NoWarn>
99
<PackageTags>swagger;openapi;test-first;spec-first;testing;aspnetcore;xunit</PackageTags>
10-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
10+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

src/Swashbuckle.AspNetCore.ApiTesting/Swashbuckle.AspNetCore.ApiTesting.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IsPackable>true</IsPackable>
77
<NoWarn>$(NoWarn);1591</NoWarn>
88
<PackageTags>swagger;openapi;test-first;spec-first;testing;aspnetcore</PackageTags>
9-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
9+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
@@ -19,10 +19,6 @@
1919
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="2.1.3" />
2020
</ItemGroup>
2121

22-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
23-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="6.0.0" />
24-
</ItemGroup>
25-
2622
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
2723
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="8.0.0" />
2824
</ItemGroup>

src/Swashbuckle.AspNetCore.Cli/Swashbuckle.AspNetCore.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>Exe</OutputType>
88
<PackAsTool>true</PackAsTool>
99
<PackageId>Swashbuckle.AspNetCore.Cli</PackageId>
10-
<TargetFrameworks>net9.0;net8.0;net6.0</TargetFrameworks>
10+
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
1111
<ToolCommandName>swagger</ToolCommandName>
1212
</PropertyGroup>
1313

src/Swashbuckle.AspNetCore.Newtonsoft/Swashbuckle.AspNetCore.Newtonsoft.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IsPackable>true</IsPackable>
77
<PackageTags>swagger;documentation;discovery;help;webapi;aspnet;aspnetcore;newtonsoft</PackageTags>
88
<SignAssembly>true</SignAssembly>
9-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
9+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
@@ -17,10 +17,6 @@
1717
<PackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Json" />
1818
</ItemGroup>
1919

20-
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
21-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" VersionOverride="6.0.0" />
22-
</ItemGroup>
23-
2420
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
2521
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" VersionOverride="8.0.0" />
2622
</ItemGroup>

src/Swashbuckle.AspNetCore.ReDoc/Swashbuckle.AspNetCore.ReDoc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<NoWarn>$(NoWarn);1591</NoWarn>
99
<PackageTags>swagger;documentation;discovery;help;webapi;aspnet;aspnetcore;redoc</PackageTags>
1010
<SignAssembly>true</SignAssembly>
11-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
11+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1212
</PropertyGroup>
1313
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
1414
<EnableAotAnalyzer>true</EnableAotAnalyzer>

src/Swashbuckle.AspNetCore.Swagger/Swashbuckle.AspNetCore.Swagger.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<NoWarn>$(NoWarn);1591</NoWarn>
99
<PackageTags>swagger;documentation;discovery;help;webapi;aspnet;aspnetcore</PackageTags>
1010
<SignAssembly>true</SignAssembly>
11-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
11+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1212
</PropertyGroup>
1313
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
1414
<EnableAotAnalyzer>true</EnableAotAnalyzer>

src/Swashbuckle.AspNetCore.SwaggerGen/Swashbuckle.AspNetCore.SwaggerGen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<NoWarn>$(NoWarn);1591</NoWarn>
99
<PackageTags>swagger;documentation;discovery;help;webapi;aspnet;aspnetcore</PackageTags>
1010
<SignAssembly>true</SignAssembly>
11-
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
11+
<TargetFrameworks>net9.0;net8.0;netstandard2.0</TargetFrameworks>
1212
</PropertyGroup>
1313

1414
<ItemGroup>

0 commit comments

Comments
 (0)