Repository navigation
Bump the roslyn group with 8 updates - #613
dependabot[bot] wants to merge 1 commit into
Conversation
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>
Skymly
left a comment
There was a problem hiding this comment.
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.dllreferences compiler 5.12.0.0, newer than the running SDK compiler 5.9.0.0 (global.jsonpins 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.
| <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.12.0" PrivateAssets="all" /> | ||
| <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.12.0" PrivateAssets="all" /> |
There was a problem hiding this comment.
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.
| <!-- 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" /> |
There was a problem hiding this comment.
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.
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
... (truncated)
18.6.3
What's Changed
Includeattributes by @glektarssza in Updated common types XSD to remove errors from redefiningIncludeattributes dotnet/msbuild#13284... (truncated)
18.5.4
What's Changed
... (truncated)
18.4.0
What's Changed
... (truncated)
18.3.3
What's Changed
... (truncated)
18.0.2
What's Changed
/documentation/specs/*.mdformatting/linting/cleanup by @BenjaminBrienen in/documentation/specs/*.mdformatting/linting/cleanup dotnet/msbuild#11611... (truncated)
17.14.28
What's Changed
... (truncated)
17.14.8
What's Changed
Full Changelog: dotnet/msbuild@v17.14.5...v17.14.8
17.14.5
What's Changed
... (truncated)
17.14.0-preview-25177-05
Release
What's Changed
Microsoft.VisualStudio.SolutionPersistenceto 1.0.52 by @surayya-MS in UpgradeMicrosoft.VisualStudio.SolutionPersistenceto 1.0.52 dotnet/msbuild#11549before/after.{solutionName}.sln.targetsfor .slnxby @surayya-MS in Loadbefore/after.{solutionName}.sln.targetsfor .slnxdotnet/msbuild#11535... (truncated)
17.14.0-preview-25155-01
Release
What's Changed
StyleCop.Analyzersto1.2.0-beta.556by @xtqqczze in BumpStyleCop.Analyzersto1.2.0-beta.556dotnet/msbuild#11398by @rainersigwald in Keep ActivityId correlations in ETW dotnet/msbuild#10909
by @rainersigwald in Add EmbedInteropTypes to COMFileReference dotnet/msbuild#11414
... (truncated)
17.14.0-preview-25110-01
Release
What's Changed
... (truncated)
17.13.9
What's Changed
Description has been truncated