Skip to content

Revert "[release/9.0-staging] Update dependencies from dotnet/roslyn"#125668

Open
sbomer wants to merge 1 commit intorelease/9.0-stagingfrom
revert-121343-darc-release/9.0-staging-4da6a74f-9a77-4837-ae86-0b0dfcd7a5bd
Open

Revert "[release/9.0-staging] Update dependencies from dotnet/roslyn"#125668
sbomer wants to merge 1 commit intorelease/9.0-stagingfrom
revert-121343-darc-release/9.0-staging-4da6a74f-9a77-4837-ae86-0b0dfcd7a5bd

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Mar 17, 2026

Reverts #121343

@sbomer sbomer requested a review from marek-safar as a code owner March 17, 2026 18:41
Copilot AI review requested due to automatic review settings March 17, 2026 18:41
@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label Mar 17, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts a prior dependency update from dotnet/roslyn in the runtime repo, restoring earlier Roslyn/compilers/analyzers versions and aligning a few tests/baselines with the reverted toolchain behavior.

Changes:

  • Downgrade Roslyn compiler/toolset and analyzer package versions in eng/Versions.props and eng/Version.Details.xml.
  • Update/adjust test expectations and formatting impacted by Roslyn/C# codegen and formatting differences.
  • Remove source-build prebuilt baseline ignore patterns that were specific to the reverted Roslyn dependency set.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/CompilerGeneratedCodeAccessedViaReflection.cs Stops expecting an IL2062 warning tied to newer C# 14 codegen.
src/tools/illink/test/ILLink.RoslynAnalyzer.Tests.Generator/ILLink.RoslynAnalyzer.Tests.Generator.csproj Reverts the Roslyn package version property used by the test generator project.
src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/UpgradeToGeneratedRegexAnalyzerTests.cs Updates expected fixed-code formatting for top-level statements scenarios.
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CustomMarshallerAttributeFixerTests_StatelessValueShapeValidation.cs Adjusts expected formatting (blank line) in test input/output.
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CustomMarshallerAttributeFixerTests_StatelessLinearCollectionShapeValidation.cs Adjusts expected formatting (blank line) in test input/output.
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CustomMarshallerAttributeFixerTests_StatefulValueShapeValidation.cs Adjusts expected formatting (blank line) in test input/output.
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CustomMarshallerAttributeFixerTests_StatefulLinearCollectionShapeValidation.cs Adjusts expected formatting (blank line) in test input/output.
eng/Versions.props Reverts Roslyn/analyzers/toolset versions and adds a build property related to compiler selection.
eng/Version.Details.xml Reverts Roslyn dependency versions/SHAs and adjusts analyzer dependency source metadata.
eng/SourceBuildPrebuiltBaseline.xml Removes Roslyn-specific prebuilt ignore patterns that were introduced with the reverted update.

@sbomer sbomer requested review from agocke and wtgodbe March 17, 2026 20:52
@wtgodbe
Copy link
Member

wtgodbe commented Mar 17, 2026

Shouldn't we merge this directly into rel/9.0 to unblock the build?

@sbomer
Copy link
Member Author

sbomer commented Mar 17, 2026

Ported to release/9.0: #125679

agocke
agocke previously approved these changes Mar 17, 2026
@agocke agocke dismissed their stale review March 17, 2026 22:47

One more change

@agocke
Copy link
Member

agocke commented Mar 17, 2026

@sbomer Can you remove the source code changes? That way we can make this test-only and it's tell-mode.

Copy link
Member

@agocke agocke left a comment

Choose a reason for hiding this comment

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

nvm, misread the file name. This is all test code. LGTM

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

Labels

area-System.Runtime.InteropServices linkable-framework Issues associated with delivering a linker friendly framework Servicing-approved Approved for servicing release

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants