Skip to content

[main] Source code updates from dotnet/aspnetcore - #7475

Merged
dotnet-maestro[bot] merged 9 commits into
mainfrom
darc-main-f8c09f31-eecb-4289-a8e4-f0a54d25402a
Jul 2, 2026
Merged

dotnet-maestro[bot] merged 9 commits into
mainfrom
darc-main-f8c09f31-eecb-4289-a8e4-f0a54d25402a

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/aspnetcore

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/aspnetcore:0c72963a97b5283bd1c042d3992060e54f5cb6d0..https://github.com/dotnet/dotnet:darc-main-f8c09f31-eecb-4289-a8e4-f0a54d25402a

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team June 30, 2026 02:17
@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

This pull request only contains source updates from https://github.com/dotnet/aspnetcore between commits 2b7a3d5c1757296f038696e208662370edac5368 and 59d3bac310685ce1e60b07e4893f9083f54c50f1.

@akoeplinger

Copy link
Copy Markdown
Member
  Build FAILED.
  
  /__w/1/s/src/aspnetcore/src/Components/Analyzers/src/ForLoopIteratorInClosureAnalyzer.cs(111,44): error CS0618: 'IOperation.Children' is obsolete: 'This API has performance penalties, please use ChildOperations instead.' [/__w/1/s/src/aspnetcore/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj]
  /__w/1/s/src/aspnetcore/src/Components/Analyzers/src/ForLoopIteratorInClosureAnalyzer.cs(246,35): error CS0618: 'IOperation.Children' is obsolete: 'This API has performance penalties, please use ChildOperations instead.' [/__w/1/s/src/aspnetcore/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj]
      0 Warning(s)
      2 Error(s)

FYI @ilonatommy @Youssef1313 @skrustev

@Youssef1313

Copy link
Copy Markdown
Member

@akoeplinger Is it fine to fix in this flow PR directly? or better to fix in aspnetcore first and let it flow normally?

@akoeplinger

Copy link
Copy Markdown
Member

@Youssef1313 fine to fix here

@Youssef1313

Youssef1313 commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Pushed a fix, but actually re-thinking, I think this might cause this to not compile when it backflows to aspnetcore 😕

Are we building with different Microsoft.CodeAnalysis package version in VMR vs aspnetcore? 👀

This project builds with 3.3.0 in aspnetcore which doesn't have the ChildOperations property, and that's why we don't see obsoletion warning for Children.

If the end shipping product to users is already using a newer version of MS.CA and that the 3.3.0 reference in aspnetcore isn't actually taking effect, we can update the version and use ChildOperations. Otherwise I would need to understand why the version in VMR is different from aspnetcore and which is used for what.

If we want a faster path to unblock this, we can #pragma warning disable CS0618 instead.

@akoeplinger

akoeplinger commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

@Youssef1313 thanks, I think the pragma is a good fix for now. Yes in source-build we override the versions of package to the "latest" ones built from roslyn.

I think we can remove the pin to 3.3.0 MS.CA we have in https://github.com/dotnet/aspnetcore/blob/59d3bac310685ce1e60b07e4893f9083f54c50f1/eng/Versions.props#L101-L106 ?

@akoeplinger

akoeplinger commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Actually, looks like we have some complicated logic around MS.CA in the VMR too, not sure how much of it still applies: https://github.com/dotnet/dotnet/blob/main/repo-projects/aspnetcore.proj#L56-L82

@Youssef1313

Copy link
Copy Markdown
Member

@dotnet-maestro

dotnet-maestro Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@dotnet-maestro
dotnet-maestro Bot merged commit bcaa8d4 into main Jul 2, 2026
16 checks passed
@dotnet-maestro
dotnet-maestro Bot deleted the darc-main-f8c09f31-eecb-4289-a8e4-f0a54d25402a branch July 2, 2026 15:33
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team July 2, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants