Skip to content

Pack symbols in SharedFx for libraries we redist from runtime #62429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 23, 2025

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Jun 20, 2025

@wtgodbe wtgodbe requested review from a team and Copilot June 20, 2025 19:33
@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 20, 2025
Copy link
Contributor

@Copilot 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 enables explicit symbol packaging for libraries redistributed from the runtime by adding a PackageReference and new MSBuild ItemGroup entries to include relevant PDB files.

  • Adds a PackageReference for "Microsoft.Internal.Runtime.AspNetCore.Transport"
  • Introduces ItemGroups to include and conditionally package symbol files in both the runtime and composite projects

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.sfxproj Inserts PackageReference and symbol inclusion logic for runtime symbols
src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.Composite.sfxproj Mirrors the runtime project changes to include symbol files in the composite project

Name="%(Filename)" />

<_SymbolFilesToPackage Include="@(_TransportPdbsWithName)"
Condition="'@(ExternalAspNetCoreAppReference->AnyHaveMetadataValue('Identity', '%(Name)'))' == 'true'" />
Copy link
Preview

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Consider refactoring this duplicated symbol packaging block into a shared targets or props file to improve maintainability across projects.

Copilot uses AI. Check for mistakes.

Name="%(Filename)" />

<_SymbolFilesToPackage Include="@(_TransportPdbsWithName)"
Condition="'@(ExternalAspNetCoreAppReference->AnyHaveMetadataValue('Identity', '%(Name)'))' == 'true'" />
Copy link
Preview

Copilot AI Jun 20, 2025

Choose a reason for hiding this comment

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

Consider refactoring this duplicated symbol packaging block into a shared targets or props file to improve maintainability across projects.

Copilot uses AI. Check for mistakes.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

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

LGTM to unblock the missing symbols but we should (ideally immediately) follow-up with only consuming the transport package and not the individual packages anymore.

Also let NuGet handle referencing and bringing the assets in. I didn't have to change a single LOC in windowsdesktop.

@wtgodbe wtgodbe merged commit 403d216 into main Jun 23, 2025
27 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/TransportSymbols branch June 23, 2025 21:36
@wtgodbe
Copy link
Member Author

wtgodbe commented Jun 23, 2025

/backport to release/10.0-preview6

Copy link
Contributor

Started backporting to release/10.0-preview6: https://github.com/dotnet/aspnetcore/actions/runs/15835680419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NETSDKE2E][VMR][Regression][VScode][macOS and Win arm64] ASP.Net symbols are missing for IL symbols for non-x64 shared frameworks
3 participants