Skip to content

Commit 12179b2

Browse files
Drop support for .NET Framework 4.6.1 in favor or .NET Framework 4.6.2 (#75)
1 parent 60ef581 commit 12179b2

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

sample/SampleConsole/SampleConsole.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;net461</TargetFrameworks>
5+
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;net462</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>

src/NaturalStringExtensions/NaturalStringComparer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
using System.Collections.Generic;
1818
using System.ComponentModel;
19-
#if !NETSTANDARD2_0 && !NETFRAMEWORK_461
19+
#if !NETSTANDARD2_0 && !NETFRAMEWORK_462
2020
using System.Diagnostics.CodeAnalysis;
2121
#endif
2222

@@ -131,7 +131,7 @@ public int Compare(string? left, string? right)
131131

132132
while (leftSegments.MoveNext() && rightSegments.MoveNext())
133133
{
134-
#if NETSTANDARD2_0 || NETFRAMEWORK_461
134+
#if NETSTANDARD2_0 || NETFRAMEWORK_462
135135
var leftIsNumber = int.TryParse(leftSegments.Current.ToString(), out var leftValue);
136136
var rightIsNumber = int.TryParse(rightSegments.Current.ToString(), out var rightValue);
137137
#else
@@ -273,7 +273,7 @@ public bool Equals(string? x, string? y)
273273
}
274274

275275
/// <inheritdoc/>
276-
#if NETSTANDARD2_0 || NETFRAMEWORK_461
276+
#if NETSTANDARD2_0 || NETFRAMEWORK_462
277277
public int GetHashCode(string? obj)
278278
#else
279279
public int GetHashCode([DisallowNull] string? obj)
@@ -284,7 +284,7 @@ public int GetHashCode([DisallowNull] string? obj)
284284
throw new ArgumentNullException(nameof(obj));
285285
}
286286

287-
#if NETSTANDARD2_0 || NETFRAMEWORK_461
287+
#if NETSTANDARD2_0 || NETFRAMEWORK_462
288288
return obj.GetHashCode();
289289
#else
290290
if (_comparer is null)

src/NaturalStringExtensions/NaturalStringExtensions.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;net5.0;netstandard2.0;net461</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net6.0;net5.0;netstandard2.0;net462</TargetFrameworks>
55

66
<AssemblyName>NaturalStringExtensions</AssemblyName>
77
<AssemblyVersion>0.0.1.0</AssemblyVersion>
@@ -41,16 +41,16 @@
4141
<RepositoryUrl>https://github.com/augustoproiete/NaturalStringExtensions.git</RepositoryUrl>
4242
</PropertyGroup>
4343

44-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
44+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
4545
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
46-
<DefineConstants>$(DefineConstants);NETFRAMEWORK_461</DefineConstants>
46+
<DefineConstants>$(DefineConstants);NETFRAMEWORK_462</DefineConstants>
4747
</PropertyGroup>
4848

4949
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
5050
<DefineConstants>$(DefineConstants);NETSTANDARD2_0</DefineConstants>
5151
</PropertyGroup>
5252

53-
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
53+
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
5454
<Reference Include="System" />
5555
<Reference Include="System.Core" />
5656
<Reference Include="Microsoft.CSharp" />
@@ -74,7 +74,7 @@
7474
<PackageReference Include="System.Memory" Version="4.5.5" />
7575
</ItemGroup>
7676

77-
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
77+
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
7878
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
7979
<PackageReference Include="System.Memory" Version="4.5.5" />
8080
</ItemGroup>

test/NaturalStringExtensions.Tests/NaturalStringExtensions.Tests.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;net461</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1;net462</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
9-
<DefineConstants>$(DefineConstants);NETFRAMEWORK_461</DefineConstants>
8+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462' ">
9+
<DefineConstants>$(DefineConstants);NETFRAMEWORK_462</DefineConstants>
1010
</PropertyGroup>
1111

1212
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
1313
<DefineConstants>$(DefineConstants);NETCOREAPP3_1</DefineConstants>
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
18-
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.1.0" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
18+
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.4.0" />
1919
<PackageReference Include="xunit" Version="2.4.2" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
20+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
<PrivateAssets>all</PrivateAssets>
2323
</PackageReference>
2424
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
25-
<PackageReference Include="coverlet.collector" Version="3.1.2">
25+
<PackageReference Include="coverlet.collector" Version="3.2.0">
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>
29-
<PackageReference Include="FluentAssertions" Version="6.7.0" />
29+
<PackageReference Include="FluentAssertions" Version="6.8.0" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

0 commit comments

Comments
 (0)