got same issue, I clean cache + bin + obj of maui app and project references(there bin and obj)
my shred project have
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
and my api have
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- <PackageReference Include="Autofac" Version="7.1.0" /> -->
<PackageReference Include="Autofac" Version="8.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GssdDesktopClient.Shared\GssdDesktopClient.Shared.csproj" />
</ItemGroup>
</Project>
Do you see any problems ?