Skip to content

Commit 04cbd44

Browse files
authored
Merge pull request #206 from dorssel/net10
Use .NET 10 SDK
2 parents cac83f0 + 9139533 commit 04cbd44

File tree

19 files changed

+54
-47
lines changed

19 files changed

+54
-47
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"gitversion.tool": {
6-
"version": "6.4.0",
6+
"version": "6.5.0",
77
"commands": [
88
"dotnet-gitversion"
99
],

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
7979
csharp_style_inlined_variable_declaration = true:suggestion
8080
csharp_style_namespace_declarations = file_scoped:suggestion
8181
csharp_style_prefer_extended_property_pattern = true:suggestion
82+
csharp_style_prefer_implicitly_typed_lambda_expression = true:suggestion
8283
csharp_style_prefer_index_operator = true:suggestion
8384
csharp_style_prefer_local_over_anonymous_function = true:suggestion
8485
csharp_style_prefer_method_group_conversion = true:suggestion
@@ -89,6 +90,7 @@ csharp_style_prefer_primary_constructors = true:suggestion
8990
csharp_style_prefer_range_operator = true:suggestion
9091
csharp_style_prefer_readonly_struct = true:suggestion
9192
csharp_style_prefer_readonly_struct_member = true:suggestion
93+
csharp_style_prefer_simple_property_accessors = true:suggestion
9294
csharp_style_prefer_switch_expression = true:suggestion
9395
csharp_style_prefer_top_level_statements = true:suggestion
9496
csharp_style_prefer_tuple_swap = true:suggestion
@@ -196,6 +198,9 @@ indent_size = 2
196198
[*.{json,yaml,yml}]
197199
indent_size = 2
198200

201+
[*.{diff,patch}]
202+
indent_size = unset
203+
199204
[*.sh]
200205
charset = utf-8
201206
end_of_line = lf

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*.targets text
2727

2828
libc/*.c text eol=lf
29+
*.diff text eol=lf
2930
*.cfg text
3031

3132
*.razor text

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
- name: Test
152152
run: |
153153
dotnet test --configuration Release --no-build \
154-
-p:TestingPlatformCommandLineArguments="--report-trx --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml"
154+
--report-trx --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
155155
156156
- name: Package
157157
run: |

.github/workflows/runtime-browser-wasm.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
with:
3131
submodules: recursive
3232

33+
- name: Patch for WASM
34+
run: |
35+
cp libc/xmss.c xmss-library/src/
36+
patch --directory=xmss-library --strip=1 < libc/wasm.diff
37+
3338
- name: Prepare packages
3439
run: |
3540
sudo apt-get update
@@ -42,6 +47,7 @@ jobs:
4247
-B build
4348
-DXMSS_C99_COMPATIBLE=OFF
4449
-DCMAKE_EXE_LINKER_FLAGS="-s NODERAWFS=1"
50+
-DCMAKE_STATIC_LIBRARY_PREFIX_C=""
4551
4652
- name: Configure (pthread)
4753
run: >
@@ -51,6 +57,7 @@ jobs:
5157
-DXMSS_C99_COMPATIBLE=OFF
5258
-DCMAKE_C_FLAGS="-pthread"
5359
-DCMAKE_EXE_LINKER_FLAGS="-s NODERAWFS=1"
60+
-DCMAKE_STATIC_LIBRARY_PREFIX_C=""
5461
5562
- name: Build
5663
run: cmake --build build
@@ -73,8 +80,8 @@ jobs:
7380
- name: Copy artifacts
7481
run: |
7582
mkdir -p "Xmss/runtimes/${{ env.RUNTIME }}/nativeassets"
76-
cp build/src/libxmss.a "Xmss/runtimes/${{ env.RUNTIME }}/nativeassets/xmss.a"
77-
cp build-pthread/src/libxmss.a "Xmss/runtimes/${{ env.RUNTIME }}/nativeassets/xmss-pthread.a"
83+
cp build/src/xmss.a "Xmss/runtimes/${{ env.RUNTIME }}/nativeassets/xmss.a"
84+
cp build-pthread/src/xmss.a "Xmss/runtimes/${{ env.RUNTIME }}/nativeassets/xmss-pthread.a"
7885
7986
- name: Save runtime cache
8087
id: save-runtime-cache

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ SPDX-License-Identifier: MIT
1111
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' != 'true'">false</ContinuousIntegrationBuild>
1212

1313
<!-- Use the latest .NET SDK -->
14-
<MainTargetFramework>net9.0</MainTargetFramework>
14+
<MainTargetFramework>net10.0</MainTargetFramework>
1515

1616
<!-- Use the latest C# Language standard -->
17-
<LangVersion>13.0</LangVersion>
17+
<LangVersion>14.0</LangVersion>
1818
<Nullable>enable</Nullable>
1919
<ImplicitUsings>enable</ImplicitUsings>
2020

Directory.Packages.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ SPDX-License-Identifier: MIT
1010
<PackageVersion Include="Dorssel.GitVersion.MsBuild" Version="1.1.1" />
1111
<!-- example WebApp -->
1212
<PackageVersion Include="Blazored.LocalStorage" Version="4.5.0" />
13-
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.10" />
14-
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.10" />
15-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.13.0" />
16-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.13.0" />
13+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.0" />
14+
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.0" />
15+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.13.1" />
16+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.13.1" />
1717
</ItemGroup>
1818
</Project>

Examples/WebAssembly/App.razor

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,4 @@
88
<Found Context="routeData">
99
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
1010
</Found>
11-
<NotFound>
12-
<PageTitle>Not found</PageTitle>
13-
<LayoutView Layout="@typeof(MainLayout)">
14-
<p role="alert">Sorry, there's nothing at this address.</p>
15-
</LayoutView>
16-
</NotFound>
1711
</Router>

Examples/WebAssembly/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1919
<WebPublishMethod>FileSystem</WebPublishMethod>
2020
<_TargetId>Folder</_TargetId>
2121
<SiteUrlToLaunchAfterPublish />
22-
<TargetFramework>net9.0</TargetFramework>
22+
<TargetFramework>net10.0</TargetFramework>
2323
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
2424
<RunAOTCompilation>true</RunAOTCompilation>
2525
<ProjectGuid>06165be7-c274-4cd4-ad9a-8bd4f3423b8d</ProjectGuid>

Xmss/AssemblySettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// SPDX-License-Identifier: MIT
44

55
using System.Runtime.CompilerServices;
6+
using System.Runtime.InteropServices;
67

78
[assembly: DisableRuntimeMarshalling]
89
[assembly: InternalsVisibleTo("Internal.UnitTests")]
10+
[assembly: DefaultDllImportSearchPaths(DllImportSearchPath.SafeDirectories)]

0 commit comments

Comments
 (0)