Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dotnet 8 #54

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .config/dotnet-tools.json

This file was deleted.

5 changes: 1 addition & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100

- name: Restore dotnet tools
run: dotnet tool restore
dotnet-version: 8.0.101

- name: Run dotnet format
run: dotnet format lit-redis.sln --verify-no-changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100
dotnet-version: 8.0.101

- name: Install dependencies
run: dotnet restore lit-redis.sln
Expand Down
1 change: 0 additions & 1 deletion LitRedis.Core/Builders/LitRedisServiceCollectionBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace LitRedis.Core.Builders;

//todo: test
public class LitRedisServiceCollectionBuilder
{
public IServiceCollection ServiceCollection { get; }
Expand Down
1 change: 0 additions & 1 deletion LitRedis.Core/Implementations/LitRedisCacheStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace LitRedis.Core.Implementations;

//todo write test
public class LitRedisCacheStore : ILitRedisCacheStore
{
private readonly IMemoryCache _cache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task<LitRedisDistributedLockModel> AcquireLockAsync(
{
var stopped = false;

var _ = Task.Run(async () =>
_ = Task.Run(async () =>
{
while (!stopped && !cancellationToken.IsCancellationRequested)
{
Expand Down
10 changes: 5 additions & 5 deletions LitRedis.Core/LitRedis.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>3.0.6</Version>
<Version>4.0.0</Version>
<LangVersion>latestmajor</LangVersion>
</PropertyGroup>

Expand All @@ -18,10 +18,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="StackExchange.Redis" Version="2.6.122" />
<PackageReference Include="System.Text.Json" Version="7.0.3" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="StackExchange.Redis" Version="2.7.17" />
<PackageReference Include="System.Text.Json" Version="8.0.1" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions LitRedis.Sample/LitRedis.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions LitRedis.Tests/LitRedis.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoFixture.AutoMoq" Version="4.18.0" />
<PackageReference Include="AutoFixture.AutoMoq" Version="4.18.1" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
Expand Down
1 change: 0 additions & 1 deletion lit-redis.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ProjectSection(SolutionItems) = preProject
LICENSE = LICENSE
.editorconfig = .editorconfig
.gitignore = .gitignore
.config\dotnet-tools.json = .config\dotnet-tools.json
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
.github\workflows\build-test-and-release.yml = .github\workflows\build-test-and-release.yml
.github\ISSUE_TEMPLATE\feature_request.md = .github\ISSUE_TEMPLATE\feature_request.md
Expand Down
Loading