Skip to content

Commit e4b1e5d

Browse files
committed
update to 6.0.0
1 parent 4bcb3a9 commit e4b1e5d

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
types: [ published ]
99

1010
env:
11-
DOTNET_SDK_VERSION: 5.0.x
11+
DOTNET_SDK_VERSION: 6.0.x
1212
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1313
DOTNET_CLI_TELEMETRY_OPTOUT: true
1414
GITHUB_FEED: https://nuget.pkg.github.com/ch1seL/
@@ -29,6 +29,11 @@ jobs:
2929
uses: actions/setup-dotnet@v1
3030
with:
3131
dotnet-version: 3.1.x
32+
33+
- name: Setup dotnet SDK 5.0
34+
uses: actions/setup-dotnet@v1
35+
with:
36+
dotnet-version: 5.0.x
3237

3338
- name: Setup dotnet SDK ${{ env.DOTNET_SDK_VERSION }}
3439
uses: actions/setup-dotnet@v1

samples/WorkerService/WorkerService.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
9+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/ch1seL.DistributedLock.MemoryLock/ch1seL.DistributedLock.MemoryLock.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
9+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

tests/ch1seL.DistributedLock.Tests/Base/IntervalsWithLockTestsBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ namespace ch1seL.DistributedLock.Tests.Base
1111
{
1212
public abstract class IntervalsWithLockTestsBase : IDisposable
1313
{
14-
private readonly object _intervalsLock = new();
14+
private readonly object _intervalsLock = new object();
1515
private readonly string _key = Guid.NewGuid().ToString("N");
1616
private readonly Stopwatch _stopwatch = Stopwatch.StartNew();
17-
private readonly object _taskListLock = new();
17+
private readonly object _taskListLock = new object();
1818

1919
protected readonly IList<Interval> Intervals = new List<Interval>();
2020
protected readonly IList<Task> TaskList = new List<Task>();

tests/ch1seL.DistributedLock.Tests/ch1seL.DistributedLock.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.1;net5</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp3.1;net5;net6</TargetFrameworks>
55
<IsPackable>false</IsPackable>
6-
<LangVersion>latest</LangVersion>
76
</PropertyGroup>
87

98
<ItemGroup>
10-
<PackageReference Include="FluentAssertions" Version="6.1.0" />
9+
<PackageReference Include="FluentAssertions" Version="6.2.0" />
1110
<PackageReference Include="JetBrains.DotMemoryUnit" Version="3.1.20200127.214830" />
12-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
11+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
1413
<PackageReference Include="xunit" Version="2.4.1" />
1514
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1615
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)