Skip to content

Bump the roslyn group with 8 updates - #613

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/roslyn-39ea0f8aac
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/roslyn-39ea0f8aac

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor

Updated Microsoft.Build.Framework from 17.11.48 to 18.7.1.

Release notes

Sourced from Microsoft.Build.Framework's releases.

18.7.1

What's Changed

18.6.3

What's Changed

18.5.4

What's Changed

18.4.0

What's Changed

18.3.3

What's Changed

18.0.2

What's Changed

17.14.28

What's Changed

17.14.8

What's Changed

Full Changelog: dotnet/msbuild@v17.14.5...v17.14.8

17.14.5

What's Changed

17.14.0-preview-25177-05

Release

What's Changed

17.14.0-preview-25155-01

Release

What's Changed

17.14.0-preview-25110-01

Release

What's Changed

17.13.9

What's Changed

  • Localized file check-in by OneLocBuild Task:...

Description has been truncated

Bumps Microsoft.Build.Framework from 17.11.48 to 18.7.1
Bumps Microsoft.CodeAnalysis.Analyzers from 3.11.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.CSharp from 4.14.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.CSharp.Features from 5.9.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.CSharp.Workspaces from 5.9.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.VisualBasic.Features from 5.9.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.VisualBasic.Workspaces from 5.9.0 to 5.12.0
Bumps Microsoft.CodeAnalysis.Workspaces.MSBuild from 5.9.0 to 5.12.0

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.Analyzers
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.CSharp.Features
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.CSharp.Workspaces
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.VisualBasic.Features
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.VisualBasic.Workspaces
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: roslyn
- dependency-name: Microsoft.Build.Framework
  dependency-version: 18.7.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: roslyn
- dependency-name: Microsoft.CodeAnalysis.Workspaces.MSBuild
  dependency-version: 5.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: roslyn
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 26, 2026

@Skymly Skymly left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Review

This is Dependabot's replacement for #592 (closed as superseded). It should not be merged as-is. build-and-test already failed on ubuntu, macOS, and Windows at head b6ccd1e. There are two independent blockers; reverting only the fixture will not make CI green.

1. Fixture compiler pin was overwritten (same as #592)

tests/fixtures/Directory.Packages.props still says CustomGenerator must stay on Microsoft.CodeAnalysis.CSharp 4.14.0, below the Roslyn the SDK ships. .github/dependabot.yml also excludes tests/fixtures/**. This PR still moved the fixture to Microsoft.CodeAnalysis.CSharp / Microsoft.CodeAnalysis.Analyzers 5.12.0.

CI then fails the way that pin is meant to prevent:

  • CS9057: CustomGenerator.dll references compiler 5.12.0.0, newer than the running SDK compiler 5.9.0.0 (global.json pins SDK 10.0.100, rollForward: latestFeature).
  • CS0759 in tests/fixtures/GeneratorHost/Placeholder.cs (PartialThing.OnValueChanged) because the generator never ran.

Action: revert the two Version attributes in CustomGenerator.csproj to 4.14.0 and 3.11.0.

2. Framework 18.7.1 pulls Microsoft.NET.StringTools and trips MSBL001 (new vs #592)

The product bump (Features/Workspaces 5.9.0 → 5.12.0) is internally consistent, and Microsoft.CodeAnalysis.Workspaces.MSBuild 5.12.0 requires Microsoft.Build.Framework >= 18.7.1, so the Framework major bump in Directory.Packages.props is a necessary companion. Hosts already set ExcludeAssets="runtime" / PrivateAssets="all" on Framework after #498.

The new restore also brings Microsoft.NET.StringTools 18.7.1 into the runtime assets. Locator 1.11.2 now fails the build on Server, Tests, and Bench:

MSBL001: A PackageReference to the package 'Microsoft.NET.StringTools' at version '18.7.1' is present in this project without ExcludeAssets="runtime" and PrivateAssets="all" set.

Action: give Microsoft.NET.StringTools the same exclude treatment as Framework on those three projects (and a CPM PackageVersion if it becomes a direct reference). PackedToolSmokeTests already asserts tools/net10.0/any/Microsoft.Build.Framework.dll is absent; extend that check to Microsoft.NET.StringTools.dll so the package does not ship a second MSBuild assembly for Locator to trip over.

After the two fixes

The 5.12.0 product alignment is the direction CompilerVersionGateTests wants (bundled Roslyn must not be older than the SDK's). Re-run CI and keep an eye on packed-tool / workspace_open smoke tests before landing.

Dependabot's exclude-paths for tests/fixtures/** still is not stopping these fixture edits; same gap as #592.

Comment on lines +14 to +15
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.12.0" PrivateAssets="all" />

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

These two versions should not move with the roslyn group. tests/fixtures/Directory.Packages.props documents that CustomGenerator must stay on Microsoft.CodeAnalysis.CSharp 4.14.0 (and it is currently paired with Microsoft.CodeAnalysis.Analyzers 3.11.0), below the SDK compiler. .github/dependabot.yml also excludes tests/fixtures/**.

CI already failed on all three OS jobs for this exact reason: CS9057 (CustomGenerator.dll built against compiler 5.12.0.0, running SDK compiler is 5.9.0.0) and then CS0759 in GeneratorHost/Placeholder.cs because the partial-method generator never ran. Same failure as #592. Please revert these two attributes to 4.14.0 and 3.11.0.

Comment thread Directory.Packages.props
<!-- Workspaces.MSBuild brings Framework in transitively. Each host excludes its runtime
asset so Locator binds MSBuild and Framework to the same installed SDK (#498). -->
<PackageVersion Include="Microsoft.Build.Framework" Version="17.11.48" />
<PackageVersion Include="Microsoft.Build.Framework" Version="18.7.1" />

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Microsoft.CodeAnalysis.Workspaces.MSBuild 5.12.0 depends on Microsoft.Build.Framework >= 18.7.1, so this major bump is a necessary companion to the 5.9.0 → 5.12.0 product update — not an accidental extra.

It is not sufficient on its own. Restore also pulls Microsoft.NET.StringTools 18.7.1 as a runtime asset, and Locator 1.11.2 fails the build with MSBL001 on DotNetMcp.Server, DotNetMcp.Tests, and DotNetMcp.Bench (the same class of issue #498 fixed for Framework). Please add ExcludeAssets="runtime" and PrivateAssets="all" for Microsoft.NET.StringTools on those three projects, and consider asserting that tools/net10.0/any/Microsoft.NET.StringTools.dll is absent in PackedToolSmokeTests, next to the existing Framework assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant