Skip to content

Commit 68475e9

Browse files
committed
Revert "[Infra] Update to net50"
This reverts commit f532dc3.
1 parent fe6129d commit 68475e9

30 files changed

+36
-47
lines changed

Build/Common.Benchmark.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup Label="Framework">
3-
<DefaultTargetFrameworks>net50;net48</DefaultTargetFrameworks>
3+
<DefaultTargetFrameworks>netcoreapp3.1;net48</DefaultTargetFrameworks>
44
</PropertyGroup>
55

66
<PropertyGroup>
@@ -9,8 +9,8 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
13-
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.12.1" />
12+
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
13+
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.12.0" />
1414
</ItemGroup>
1515

1616
<Import Project="$(RootDir)\Build\DeleteGenerateBindingRedirects.target"/>

Build/Common.Tests.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project>
22
<PropertyGroup Label="Framework">
3-
<DefaultTargetFrameworks>net50;net48</DefaultTargetFrameworks>
3+
<DefaultTargetFrameworks>netcoreapp3.1;net48</DefaultTargetFrameworks>
44
<IsPackable>False</IsPackable>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
8+
<PackageReference Include="FluentAssertions" Version="5.6.0" />
99
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
1010
<PackageReference Include="xunit" Version="2.4.1" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
11+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>
1515
</ItemGroup>
1616

1717
<Import Project="$(RootDir)\Build\DeleteGenerateBindingRedirects.target"/>
1818

19-
</Project>
19+
</Project>

Build/Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<PropertyGroup Label="Common properties">
18-
<LangVersion>Latest</LangVersion>
18+
<LangVersion>8.0</LangVersion>
1919
</PropertyGroup>
2020

2121

Build/Nuke/NukeBuild.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net50</TargetFramework>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
66
<NoWarn>CS0649;CS0169</NoWarn>
77
<NukeRootDirectory>..\..</NukeRootDirectory>
88
<NukeScriptDirectory>..\..</NukeScriptDirectory>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Nuke.Common" Version="5.0.0" />
12+
<PackageReference Include="Nuke.Common" Version="0.25.0" />
1313
<PackageDownload Include="GitVersion.Tool" Version="[5.1.1]" />
1414
</ItemGroup>
1515

src/StructLinq.BCL.Tests/StructLinq.BCL.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net452;net462;net472;net48;netcoreapp1.0;netcoreapp1.1;netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1;net50</TargetFrameworks>
5-
<NoWarn>NETSDK1138;CS1701;NU1701</NoWarn>
4+
<TargetFrameworks>net452;net462;net472;net48;netcoreapp1.0;netcoreapp1.1;netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
65
</PropertyGroup>
76

87
<ItemGroup>

src/StructLinq.BCL/Dictionary/DictionaryEnumerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public bool MoveNext()
2525
while (++index <= length)
2626
{
2727
ref var entry = ref entries[index];
28-
#if (NETCOREAPP3_0 || NET5_0)
28+
#if (NETCOREAPP3_0 )
2929
if (entry.Next >= -1)
3030
#endif
3131
#if (NET452 || NETCOREAPP1_0 || NETCOREAPP2_0)

src/StructLinq.BCL/Dictionary/DictionaryLayout.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal struct Entry<TKey, TValue>
1515
internal TValue Value; // Value of entry
1616
}
1717
#endif
18-
#if (NETCOREAPP3_0)
18+
#if (NETCOREAPP3_0 )
1919

2020
internal struct Entry<TKey, TValue>
2121
{
@@ -25,14 +25,4 @@ internal struct Entry<TKey, TValue>
2525
internal TValue Value; // Value of entry
2626
}
2727
#endif
28-
#if (NET5_0)
29-
30-
internal struct Entry<TKey, TValue>
31-
{
32-
public uint HashCode;
33-
public int Next;
34-
internal TKey Key; // Key of entry
35-
internal TValue Value; // Value of entry
36-
}
37-
#endif
3828
}

src/StructLinq.BCL/List/ListLayout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class ListLayout<T>
1414
}
1515
#endif
1616

17-
#if (NETCOREAPP3_0 || NET5_0)
17+
#if (NETCOREAPP3_0)
1818

1919
internal class ListLayout<T>
2020
{

src/StructLinq.BCL/StructLinq.BCL.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net452;netcoreapp1.0;netcoreapp2.0;netcoreapp3.0;net50</TargetFrameworks>
5-
<NoWarn>NETSDK1138;CS1701</NoWarn>
4+
<TargetFrameworks>net452;netcoreapp1.0;netcoreapp2.0;netcoreapp3.0</TargetFrameworks>
65
</PropertyGroup>
76

87
<PropertyGroup Label="Nuget">

src/StructLinq.Benchmark/Aggregate.cs

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

66
namespace StructLinq.Benchmark
77
{
8-
[MemoryDiagnoser, DisassemblyDiagnoser( 4)]
8+
[MemoryDiagnoser, DisassemblyDiagnoser(recursiveDepth: 4)]
99
public class Aggregate
1010
{
1111
private readonly RangeEnumerable _rangeEnumerable;

0 commit comments

Comments
 (0)