Skip to content

Commit cb4d241

Browse files
committed
Use .NET 10 SDK
1 parent cac83f0 commit cb4d241

File tree

17 files changed

+49
-41
lines changed

17 files changed

+49
-41
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
],

.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 --skip=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/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)]

Xmss/GlobalSuppressions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99

1010
using System.Diagnostics.CodeAnalysis;
1111

12-
[assembly: SuppressMessage("Security", "CA5393:Do not use unsafe DllImportSearchPath value", Justification = "Required to load native runtime library.")]
1312
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Matches native library names.", Scope = "NamespaceAndDescendants", Target = "~N:Dorssel.Security.Cryptography.Internal")]

Xmss/Internal/Errors.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ namespace Dorssel.Security.Cryptography.Internal;
1111
static partial class UnsafeNativeMethods
1212
{
1313
[LibraryImport("xmss", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(ErrorStringMarshaller))]
14-
[DefaultDllImportSearchPaths(DllImportSearchPath.AssemblyDirectory)]
1514
internal static partial string xmss_error_to_name(XmssError error);
1615

1716
[LibraryImport("xmss", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(ErrorStringMarshaller))]
18-
[DefaultDllImportSearchPaths(DllImportSearchPath.AssemblyDirectory)]
1917
internal static partial string xmss_error_to_description(XmssError error);
2018
}

0 commit comments

Comments
 (0)