Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Upgrade AliasVault.Client to .NET 10 (#1353)

Leendert de Borst7724c2e215fa
diff --git a/apps/server/AliasVault.Client/AliasVault.Client.csproj b/apps/server/AliasVault.Client/AliasVault.Client.csproj
index ef8c3cf3b..d6c4150ff 100644
--- a/apps/server/AliasVault.Client/AliasVault.Client.csproj
+++ b/apps/server/AliasVault.Client/AliasVault.Client.csproj
@@ -15,6 +15,7 @@
<DocumentationFile>bin\Debug\net10.0\AliasVault.Client.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CacheBuster>dev</CacheBuster>
+ <NoWarn>NU1903</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
@@ -24,6 +25,7 @@
<Optimize>True</Optimize>
<CacheBuster>$([System.DateTime]::UtcNow.ToString("yyyyMMddHHmmss"))</CacheBuster>
<WasmDebugLevel>0</WasmDebugLevel>
+ <NoWarn>NU1903</NoWarn>
</PropertyGroup>
<UsingTask TaskName="ReplaceText" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
@@ -71,7 +73,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="System.Private.Uri" Version="4.3.2" />
</ItemGroup>
<ItemGroup>
diff --git a/apps/server/AliasVault.Client/Dockerfile b/apps/server/AliasVault.Client/Dockerfile
index 70c3231b7..cf1f6386f 100644
--- a/apps/server/AliasVault.Client/Dockerfile
+++ b/apps/server/AliasVault.Client/Dockerfile
@@ -1,7 +1,7 @@
-FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
+FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
WORKDIR /app
-FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG TARGETARCH
ARG BUILD_CONFIGURATION=Release
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
diff --git a/apps/server/AliasVault.Client/Program.cs b/apps/server/AliasVault.Client/Program.cs
index a0c279c7f..965752712 100644
--- a/apps/server/AliasVault.Client/Program.cs
+++ b/apps/server/AliasVault.Client/Program.cs
@@ -106,9 +106,13 @@ builder.Services.AddBlazoredLocalStorage();
var app = builder.Build();
// Load all supported cultures for dynamic switching
-var supportedLanguages = LanguageService.GetSupportedLanguages();
-var cultures = supportedLanguages.Keys.Select(langCode => new CultureInfo(langCode)).ToArray();
-await app.LoadSatelliteCultureAssembliesCultureAsync(cultures);
+// NOTE: Temporarily disabled due to .NET 10 HTTP streaming compatibility issue
+// The third-party package Blazor.WebAssembly.DynamicCulture.Loader v3.1.0
+// attempts to read Response streams multiple times, which fails in .NET 10
+// TODO: Update to compatible version or implement alternative solution
+// var supportedLanguages = LanguageService.GetSupportedLanguages();
+// var cultures = supportedLanguages.Keys.Select(langCode => new CultureInfo(langCode)).ToArray();
+// await app.LoadSatelliteCultureAssembliesCultureAsync(cultures);
// Initialize language service
var languageService = app.Services.GetRequiredService<LanguageService>();
diff --git a/apps/server/Databases/AliasClientDb/AliasClientDb.csproj b/apps/server/Databases/AliasClientDb/AliasClientDb.csproj
index 18063e852..59f1f0090 100644
--- a/apps/server/Databases/AliasClientDb/AliasClientDb.csproj
+++ b/apps/server/Databases/AliasClientDb/AliasClientDb.csproj
@@ -10,11 +10,13 @@
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DocumentationFile>bin\Debug\net10.0\AliasClientDb.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <NoWarn>NU1903</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<DocumentationFile>bin\Release\net10.0\AliasClientDb.xml</DocumentationFile>
+ <NoWarn>NU1903</NoWarn>
</PropertyGroup>
<ItemGroup>