Skip to content

Bump the roslyn group with 8 updates - #613

Merged
Skymly merged 4 commits into
mainfrom
dependabot/nuget/roslyn-39ea0f8aac
Dec 2, 2026
Merged

Skymly merged 4 commits 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 thread Directory.Packages.props Resolved
@Skymly
Skymly merged commit 18e7498 into main Dec 2, 2026
5 checks passed
@dependabot
dependabot Bot deleted the dependabot/nuget/roslyn-39ea0f8aac branch December 2, 2026 13:42
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