Skip to content

Commit 7e34c9b

Browse files
authored
Update target frameworks (#3)
* Update Directory.Build.props * Update main.yml * Update AutoGuru.KeyValuePush.Redis.csproj * Modernize and handle some warnings
1 parent 5580821 commit 7e34c9b

File tree

5 files changed

+11
-24
lines changed

5 files changed

+11
-24
lines changed

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
# build:
1616
# runs-on: ubuntu-latest
1717
# steps:
18-
# - uses: actions/checkout@v1
18+
# - uses: actions/checkout@v3
1919
#
2020
# - name: Setup Dotnet for use with actions
21-
# uses: actions/setup-dotnet@v1
21+
# uses: actions/setup-dotnet@v3
2222
# with:
23-
# dotnet-version: '5.0.x'
23+
# dotnet-version: '8.0.x'
2424
#
2525
# - name: Build with dotnet
2626
# run: dotnet build --configuration Release
@@ -29,12 +29,12 @@ jobs:
2929
# needs: build
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v3
3333

3434
- name: Setup Dotnet for use with actions
35-
uses: actions/setup-dotnet@v1
35+
uses: actions/setup-dotnet@v3
3636
with:
37-
dotnet-version: '5.0.x'
37+
dotnet-version: '8.0.x'
3838

3939
- name: Pack with dotnet
4040
run: dotnet pack --configuration Release

Directory.Build.props

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<Authors>Ben McCallum, AutoGuru</Authors>
77
<Product>kv-push</Product>
@@ -14,14 +14,9 @@
1414
<RepositoryType>git</RepositoryType>
1515
<IsPackable>false</IsPackable>
1616
<NoPackageAnalysis>true</NoPackageAnalysis>
17-
<LangVersion>latest</LangVersion>
1817
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1918
<GenerateFullPaths Condition="'$(TERM_PROGRAM)' == 'vscode'">true</GenerateFullPaths>
2019
<Nullable>enable</Nullable>
2120
</PropertyGroup>
2221

23-
<ItemGroup>
24-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" Publish="false" />
25-
</ItemGroup>
26-
2722
</Project>

src/KeyValuePush.Redis/AutoGuru.KeyValuePush.Redis.csproj

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>1.0.1</Version>
4+
<Version>2.0.0</Version>
55
<Description>A dotnet global tool for pushing key-value data into redis.</Description>
66
<Product>kv-push-redis</Product>
77
<OutputType>Exe</OutputType>
@@ -10,16 +10,12 @@
1010
<ToolCommandName>kv-push-redis</ToolCommandName>
1111
<ServerGarbageCollection>true</ServerGarbageCollection>
1212
<DebugType>embedded</DebugType>
13-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1413
</PropertyGroup>
1514

1615
<ItemGroup>
1716
<FrameworkReference Include="Microsoft.AspNetCore.App" />
18-
</ItemGroup>
19-
20-
<ItemGroup>
21-
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.1.0" />
22-
<PackageReference Include="StackExchange.Redis" Version="2.2.62" />
17+
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.0" />
18+
<PackageReference Include="StackExchange.Redis" Version="2.7.17" />
2319
</ItemGroup>
2420

2521
<ItemGroup>

src/KeyValuePush.Redis/RedisPusher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace AutoGuru.KeyValuePush.Redis
99
{
10-
public class RedisPusher : IPusher, IDisposable
10+
public sealed class RedisPusher : IPusher, IDisposable
1111
{
1212
private ConnectionMultiplexer? _connectionMultiplexer;
1313
private IDatabase? _db;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<ItemGroup>
4-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" Publish="false" />
5-
</ItemGroup>
6-
73
</Project>

0 commit comments

Comments
 (0)