Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BARS-Client-V2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.9" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.10" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Major version mismatch in Microsoft.Extensions ecosystem

Microsoft.Extensions.Logging.Console is being bumped to 10.0.10 while Microsoft.Extensions.Hosting (line 38) and Microsoft.Extensions.Http (line 40) remain at 9.0.9. These packages share transitive dependencies (e.g. Microsoft.Extensions.Logging.Abstractions, Microsoft.Extensions.DependencyInjection.Abstractions) — Logging.Console 10.x will pull in 10.x versions of those abstractions while Hosting 9.x expects 9.x versions. NuGet will resolve to the higher version, but Hosting was never tested against 10.x abstractions and may fail at runtime with type-load or interface-mismatch errors.

Additionally, the project targets net8.0-windows, and Microsoft.Extensions.* 10.x packages are built for net10.0. If no compatible TFM fallback exists in the package, the build itself may warn or fail.

Prompt To Fix With AI
This is a comment left during a code review.
Path: BARS-Client-V2.csproj
Line: 39

Comment:
**Major version mismatch in Microsoft.Extensions ecosystem**

`Microsoft.Extensions.Logging.Console` is being bumped to `10.0.10` while `Microsoft.Extensions.Hosting` (line 38) and `Microsoft.Extensions.Http` (line 40) remain at `9.0.9`. These packages share transitive dependencies (e.g. `Microsoft.Extensions.Logging.Abstractions`, `Microsoft.Extensions.DependencyInjection.Abstractions`) — `Logging.Console` 10.x will pull in 10.x versions of those abstractions while `Hosting` 9.x expects 9.x versions. NuGet will resolve to the higher version, but `Hosting` was never tested against 10.x abstractions and may fail at runtime with type-load or interface-mismatch errors.

Additionally, the project targets `net8.0-windows`, and `Microsoft.Extensions.*` 10.x packages are built for `net10.0`. If no compatible TFM fallback exists in the package, the build itself may warn or fail.

How can I resolve this? If you propose a fix, please make it concise.

<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" />
<PackageReference Include="DiscordRichPresence" Version="1.6.1.70" />
<PackageReference Include="SimConnect.NET" Version="0.1.15-beta" />
Expand Down
Loading