Skip to content

Commit f9eec75

Browse files
Cleaning and modernizing
1 parent 863219b commit f9eec75

15 files changed

Lines changed: 796 additions & 810 deletions

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 8.0.x
19+
dotnet-version: 10.0.x
2020
- name: Restore dependencies
2121
run: dotnet restore
2222
- name: Build

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
</PropertyGroup>
5+
</Project>

Directory.Packages.props

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageVersion Include="Backport.System.Threading.Lock" Version="3.1.5" />
7+
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
8+
<PackageVersion Include="System.Runtime.Caching" Version="10.0.1" />
9+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
10+
<PackageVersion Include="MSTest.TestAdapter" Version="4.0.2" />
11+
<PackageVersion Include="MSTest.TestFramework" Version="4.0.2" />
12+
</ItemGroup>
13+
</Project>

FastCache.Benchmarks/FastCache.Benchmarks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="BenchmarkDotNet" Version="0.13.2" />
12-
<PackageReference Include="System.Runtime.Caching" Version="6.0.0" />
11+
<PackageReference Include="BenchmarkDotNet" />
12+
<PackageReference Include="System.Runtime.Caching" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

FastCache.Benchmarks/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[ShortRunJob, MemoryDiagnoser]
1010
public class BenchMark
1111
{
12-
private static FastCache<string, int> _cache = new FastCache<string, int>(600_000);
12+
private static FastCache<string, int> _cache = new(600_000);
1313
private static ConcurrentDictionary<string, int> _dict = new();
1414

1515
private static DateTime _dtPlus10Mins = DateTime.Now.AddMinutes(10);

FastCache.sln

Lines changed: 0 additions & 37 deletions
This file was deleted.

FastCache.slnx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path="Directory.Build.props" />
4+
<File Path="Directory.Packages.props" />
5+
<File Path="LICENSE" />
6+
<File Path="README.md" />
7+
</Folder>
8+
<Project Path="FastCache.Benchmarks/FastCache.Benchmarks.csproj" />
9+
<Project Path="FastCache/FastCache.csproj" />
10+
<Project Path="UnitTests/UnitTests.csproj" />
11+
</Solution>

0 commit comments

Comments
 (0)