Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 9ce1195

Browse files
authored
Remove support for .NET 4.6.1 (#566)
4.6.1 reached end-of-life in 2022.
1 parent ce00c97 commit 9ce1195

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/IdentityModel.csproj

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<!--Conditional compilation-->
3939
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
40-
<TargetFrameworks>net461;net472;netstandard2.0;net6.0</TargetFrameworks>
40+
<TargetFrameworks>net462;net472;netstandard2.0;net6.0</TargetFrameworks>
4141
</PropertyGroup>
4242
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
4343
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
@@ -51,19 +51,11 @@
5151
<!--Conditional Package references -->
5252

5353
<!-- System.Text.Json is automatically included in net6.0, so we don't take an explicit dependency on it in the net6.0 build. -->
54-
<!-- System.Text.Json version 7.0.0 dropped support for net461, so we use the older version there. -->
55-
<!-- The netstandard2.0 build can be used in a class library consumed by an application targeting net461, so we use the older version there too.-->
56-
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
57-
<PackageReference Include="System.Text.Json" Version="6.0.0" />
58-
</ItemGroup>
59-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
60-
<PackageReference Include="System.Text.Json" Version="6.0.0" />
61-
</ItemGroup>
62-
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
54+
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0'">
6355
<PackageReference Include="System.Text.Json" Version="8.0.0" />
64-
</ItemGroup>
56+
</ItemGroup>
6557

66-
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'net472'">
58+
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net472'">
6759
<Reference Include="System.Net.Http" />
6860
</ItemGroup>
6961

0 commit comments

Comments
 (0)