37bec89484
This pull request implements **Central Package Management (CPM)** across the NexusReader solution to centralize package version definitions, improve package maintainability, and ensure security patch consistency. It also resolves compile issues in the mobile infrastructure and client projects. ### Key Changes #### 1. NuGet Central Package Management (CPM) - Created `Directory.Packages.props` in the solution root containing all solution-wide dependency versions (consolidating 48 packages). - Pinned and secured `Microsoft.Bcl.Memory` to `v9.0.14` to resolve a known high-severity vulnerability (CVE-2026-26127). - Stripped explicit `Version` attributes from `.csproj` files for the core library, web client, web host, UI shared, data access, and testing projects to inherit central version definitions. #### 2. Mobile / MAUI Projects Stabilization - **Workload Support & Locally Disabled CPM**: Disabled Central Package Management locally (`<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>`) in both `NexusReader.Infrastructure.Mobile.csproj` and `NexusReader.Maui.csproj` to preserve native MAUI workload package integration while cleanly referencing package versions manually. - **Ambiguity Resolving**: Added using aliases for `FluentResults.Result` to eliminate compiler ambiguity conflicts between `Android.App.Result` and `FluentResults.Result` inside Android platform service implementations. - **Missing Namespaces Fix**: Added explicit hosting imports (`using Microsoft.Maui; using Microsoft.Maui.Hosting;`) and ensured `Microsoft.Maui.Essentials` references resolve properly in the mobile context. --- ### Verification - **Build**: Successfully built the entire solution with zero compilation errors (`dotnet build NexusReader.slnx --no-restore` -> `Liczba błędów: 0`). - **Tests**: All 7 integration and unit tests run and pass successfully (`dotnet test NexusReader.slnx --no-restore`). --------- Co-authored-by: Marek Jasiński <jasins.marek@gmail.com> Reviewed-on: #50 Reviewed-by: Marek Jaisński <jasins.marek@gmail.com> Co-authored-by: Antigravity <antigravity@google.com> Co-committed-by: Antigravity <antigravity@google.com>
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\NexusReader.Application\NexusReader.Application.csproj" />
|
|
<ProjectReference Include="..\NexusReader.Data\NexusReader.Data.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="GeminiDotnet.Extensions.AI" />
|
|
<PackageReference Include="Hangfire.AspNetCore" />
|
|
<PackageReference Include="Hangfire.PostgreSql" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
|
|
<PackageReference Include="Microsoft.Extensions.AI" />
|
|
<PackageReference Include="Microsoft.Extensions.Resilience" />
|
|
<PackageReference Include="Microsoft.Bcl.Memory" />
|
|
<PackageReference Include="Microsoft.ML.Tokenizers" />
|
|
<PackageReference Include="Microsoft.ML.Tokenizers.Data.Cl100kBase" />
|
|
<PackageReference Include="Neo4j.Driver" />
|
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
|
|
<PackageReference Include="Polly" />
|
|
<PackageReference Include="Polly.Extensions.Http" />
|
|
<PackageReference Include="Qdrant.Client" />
|
|
<PackageReference Include="Stripe.net" />
|
|
<PackageReference Include="VersOne.Epub" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|