Skip to content

Commit 2972985

Browse files
authored
.NET 8 (#10)
* Update build scripts * .NET 8 +semver:major
1 parent 4ff761c commit 2972985

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Setup .NET 6
21-
uses: actions/setup-dotnet@v1
19+
- uses: actions/checkout@v3
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: 6.0.x
23+
dotnet-version: 8.0.x
2424
- name: Restore dependencies
2525
run: dotnet restore source
2626
- name: Build

.github/workflows/PreRelease.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
1515
- name: Install GitVersion
16-
uses: gittools/actions/gitversion/setup@v0.9.7
16+
uses: gittools/actions/gitversion/setup@v0
1717
with:
1818
versionSpec: "5.x"
19-
- name: Setup .NET 6
20-
uses: actions/setup-dotnet@v1
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v3
2121
with:
22-
dotnet-version: "6.0.x"
22+
dotnet-version: "8.0.x"
2323
- name: Determine Version
2424
id: gitversion
25-
uses: gittools/actions/gitversion/execute@v0.9.7
25+
uses: gittools/actions/gitversion/execute@v0
2626
with:
2727
useConfigFile: true
2828
- name: Pack

.github/workflows/Release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
1515
- name: Install GitVersion
16-
uses: gittools/actions/gitversion/setup@v0.9.7
16+
uses: gittools/actions/gitversion/setup@v0
1717
with:
1818
versionSpec: "5.x"
19-
- name: Setup .NET 6
20-
uses: actions/setup-dotnet@v1
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v3
2121
with:
22-
dotnet-version: "6.0.x"
22+
dotnet-version: "8.0.x"
2323
- name: Determine Version
2424
id: gitversion
25-
uses: gittools/actions/gitversion/execute@v0.9.7
25+
uses: gittools/actions/gitversion/execute@v0
2626
with:
2727
useConfigFile: true
2828
- name: Pack

GitVersion.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
branches:
22
master:
3-
regex: ^master$
3+
regex: ^main$
44
mode: ContinuousDeployment
55
tag: ""
66
feature:
7-
regex: ^features?[/-]|(?!^master$|^(hotfix|bugfix)(es)?[/-]|^support[/-]|(^(pull|pull\-requests|pr)[/-]))(^.*$)
7+
regex: ^features?[/-]|(?!^main$|^(hotfix|bugfix)(es)?[/-]|^support[/-]|(^(pull|pull\-requests|pr)[/-]))(^.*$)
88
mode: ContinuousDeployment
99
tag: "feature"
1010
pull-request:

Samples/HelloWorld/HelloWorld.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>

source/src/Slackbot.Net.Endpoints/Authentication/SlackbotEventsAuthenticationAuthenticationHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ internal class SlackbotEventsAuthenticationAuthenticationHandler : Authenticatio
1717
private readonly string _signingSecret;
1818

1919
public SlackbotEventsAuthenticationAuthenticationHandler(
20-
IOptionsMonitor<SlackbotEventsAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder,
21-
ISystemClock clock) : base(options, logger, encoder, clock)
20+
IOptionsMonitor<SlackbotEventsAuthenticationOptions> options, ILoggerFactory logger, UrlEncoder encoder)
21+
: base(options, logger, encoder)
2222
{
2323
if (string.IsNullOrEmpty(options.CurrentValue.SigningSecret))
2424
throw new ArgumentNullException(nameof(SlackbotEventsAuthenticationOptions.SigningSecret));
@@ -94,4 +94,4 @@ private string GeneratedSignature(long timestamp, string body)
9494

9595
return builder.ToString();
9696
}
97-
}
97+
}

source/src/Slackbot.Net.Endpoints/Slackbot.Net.Endpoints.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>Slackbot.Net.Endpoints</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>

source/src/Slackbot.Net.Shared/Slackbot.Net.Shared.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<LangVersion>latest</LangVersion>
6+
<LangVersion>latest</LangVersion>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

source/src/Slackbot.Net.SlackClients.Http/Slackbot.Net.SlackClients.Http.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>Slackbot.Net.SlackClients.Http</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>
@@ -21,8 +21,8 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
25-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
24+
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
25+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
2626
</ItemGroup>
2727

2828
<ItemGroup>

source/test/Slackbot.Net.SlackClients.Http.Tests/Slackbot.Net.SlackClients.Http.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<RootNamespace>Slackbot.Net.Tests</RootNamespace>
77
<ImplicitUsings>enable</ImplicitUsings>
@@ -10,7 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="FakeItEasy" Version="5.1.1" />
13-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
13+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
1414
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
1515
<PackageReference Include="xunit" Version="2.4.1" />
1616
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />

0 commit comments

Comments
 (0)