Fix warnings about Microsoft.CodeAnalysis.Workspaces.Common and Microsoft.CodeAnalysis.Common versions#2295
Merged
jeremydmiller merged 5 commits intoJasperFx:mainfrom Mar 12, 2026
Conversation
… 10.0.0 to 10.0.2
Member
|
@dmytro-pryvedeniuk You're on fire man! |
This was referenced Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes warnings about version conflict produced by
dotnet restorepartially shown below. It's interesting that Wolverine is mentioned in this issue dotnet/efcore#35143.warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Workspaces.MSBuild 4.8.0 requires Microsoft.CodeAnalysis.Common (= 4.8.0) but version Microsoft.CodeAnalysis.Common 4.14.0 was resolved.
warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Workspaces.MSBuild 4.8.0 requires Microsoft.CodeAnalysis.Workspaces.Common (= 4.8.0) but version Microsoft.CodeAnalysis.Workspaces.Common 4.14.0 was resolved.
warning NU1608: Detected package version outside of dependency constraint: Microsoft.CodeAnalysis.Workspaces.MSBuild 4.14.0 requires Microsoft.CodeAnalysis.Workspaces.Common (= 4.14.0) but version Microsoft.CodeAnalysis.Workspaces.Common 5.0.0 was resolved.
These warnings are caused by dependencies of
Microsoft.EntityFrameworkCore.DesignandJasperFx.RuntimeCompiler(see below, note using of the pinned versions for Microsoft.CodeAnalysis.* packages.For net10 the issue is fixed in
Microsoft.EntityFrameworkCore.Design10.0.2.For net9 and net8 it helps to update
Microsoft.CodeAnalysis.Workspaces.MSBuildto 4.14.0 to align expectations ofJasperFx.RuntimeCompilerandMicrosoft.EntityFrameworkCore.Design.Microsoft.CodeAnalysis.Workspaces.MSBuild4.14.0 bringsMicrosoft.Build.Tasks.Core17.7.2 which has a known vulnerability. It emits warning NU1903: Package 'Microsoft.Build.Tasks.Core' 17.7.2 has a known high severity vulnerability, GHSA-h4j7-5rxr-p4wc. To fix it the version is updated to 17.13.26.Additionally, the following warnings are fixed as advised:
..\src\Wolverine\Wolverine.csproj : warning NU1510: PackageReference System.ComponentModel will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
..\src\Wolverine\Wolverine.csproj : warning NU1510: PackageReference System.Net.NameResolution will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
...\src\Http\OpenApiDemonstrator\OpenApiDemonstrator.csproj : warning NU1510: PackageReference Microsoft.AspNetCore.SignalR will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.