Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit f70010f

Browse files
authored
add support for .NET 8 (#860)
1 parent 22aeecc commit f70010f

File tree

11 files changed

+26
-20
lines changed

11 files changed

+26
-20
lines changed

.github/workflows/dotnet-codestyle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222

23-
- name: Setup .NET 6.0
23+
- name: Setup .NET 8.0
2424
uses: actions/setup-dotnet@v3
2525
with:
26-
dotnet-version: 6.0.x
26+
dotnet-version: 8.0.x
2727

2828
- name: Run Binding Codestyle
2929
run: dotnet format --verify-no-changes --no-restore

.github/workflows/dotnet-demos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
with:
4343
submodules: recursive
4444

45-
- name: Set up .NET 6.0
45+
- name: Set up .NET 8.0
4646
uses: actions/setup-dotnet@v3
4747
with:
48-
dotnet-version: 6.0.x
48+
dotnet-version: 8.0.x
4949

5050
- name: Dotnet build micdemo
5151
run: dotnet build -c MicDemo.Release -v n

.github/workflows/dotnet.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
matrix:
3838
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
39-
dotnet-version: [2.1.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x]
39+
dotnet-version: [2.1.x, 3.0.x, 3.1.x, 5.0.x, 6.0.x, 8.0.x]
4040
include:
4141
- dotnet-version: 2.1.x
4242
binding-framework: netstandard2.0
@@ -53,6 +53,9 @@ jobs:
5353
- dotnet-version: 6.0.x
5454
binding-framework: net6.0
5555
test-framework: net6.0
56+
- dotnet-version: 8.0.x
57+
binding-framework: net8.0
58+
test-framework: net8.0
5659
- os: ubuntu-latest
5760
nuget-path: ~/.nuget/NuGet/local-nuget
5861
- os: macos-latest
@@ -68,8 +71,10 @@ jobs:
6871
dotnet-version: 3.1.x
6972
- os: macos-latest
7073
dotnet-version: 5.0.x
71-
- os: macos-13
74+
- os: macos-latest
7275
dotnet-version: 6.0.x
76+
- os: macos-13
77+
dotnet-version: 8.0.x
7378

7479
steps:
7580
- name: Checkout repository and submodules
@@ -104,7 +109,7 @@ jobs:
104109
submodules: recursive
105110

106111
- name: Build binding
107-
run: dotnet build Picovoice/Picovoice.csproj --framework net6.0 -v n
112+
run: dotnet build Picovoice/Picovoice.csproj --framework net8.0 -v n
108113

109114
- name: Test
110-
run: dotnet test --framework net6.0 -v n
115+
run: dotnet test --framework net8.0 -v n

demo/dotnet/PicovoiceDemo/PicovoiceDemo.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
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Configurations>FileDemo.Debug;FileDemo.Release;MicDemo.Debug;MicDemo.Release</Configurations>
66
</PropertyGroup>
77

@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="PvRecorder" Version="1.2.5" />
22-
<PackageReference Include="Picovoice" Version="3.0.3" />
21+
<PackageReference Include="PvRecorder" Version="1.2.6" />
22+
<PackageReference Include="Picovoice" Version="3.0.4" />
2323
</ItemGroup>
2424
</Project>

demo/dotnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ similar to Alexa and Google. But it entirely runs 100% on-device. Picovoice is
1919

2020
## Requirements
2121

22-
- .NET 6.0
22+
- .NET 8.0
2323

2424
## Compatibility
2525

resources/.lint/spell-check/.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"**/*.keystore",
7070
"**/BUCK",
7171
"**/build_defs.bzl",
72+
"**/sdk/go/go.sum",
7273
"**/sdk/react-native/test-app/**/*.xml",
7374
"**/sdk/react-native/test-app/**/*.mm",
7475
"**/Cargo.toml",

sdk/dotnet/Picovoice/Picovoice.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;netcoreapp3.0;netstandard2.0</TargetFrameworks>
4-
<Version>3.0.3</Version>
3+
<TargetFrameworks>net8.0;net6.0;netcoreapp3.0;netstandard2.0</TargetFrameworks>
4+
<Version>3.0.4</Version>
55
<Authors>Picovoice</Authors>
66
<Company />
77
<Product>Picovoice End-to-End Platform</Product>
@@ -35,10 +35,10 @@
3535
</None>
3636
</ItemGroup>
3737
<ItemGroup>
38-
<PackageReference Include="Porcupine" Version="3.0.3">
38+
<PackageReference Include="Porcupine" Version="3.0.4">
3939
<PrivateAssets>analyzers</PrivateAssets>
4040
</PackageReference>
41-
<PackageReference Include="Rhino" Version="3.0.3">
41+
<PackageReference Include="Rhino" Version="3.0.4">
4242
<PrivateAssets>analyzers</PrivateAssets>
4343
</PackageReference>
4444
</ItemGroup>

sdk/dotnet/PicovoiceTest/PicovoiceTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1;netcoreapp3.0;netcoreapp2.1;</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net6.0;net5.0;netcoreapp3.1;netcoreapp3.0;netcoreapp2.1;</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66

0 commit comments

Comments
 (0)