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
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@
<AllowedReferenceRelatedFileExtensions>.pdb</AllowedReferenceRelatedFileExtensions>

<PartialCompositeAssemblyListPath>PartialCompositeAssemblyListPath.txt</PartialCompositeAssemblyListPath>
<DisablePackageReferenceRestrictions>true</DisablePackageReferenceRestrictions>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Internal.Runtime.AspNetCore.Transport"
Version="$(MicrosoftInternalRuntimeAspNetCoreTransportVersion)"
ExcludeAssets="All"
GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup>
<Reference Include="@(AspNetCoreAppReference);@(AspNetCoreAppReferenceAndPackage);@(ExternalAspNetCoreAppReference)">
<IncludeAssets>Runtime;Native</IncludeAssets>
Expand Down Expand Up @@ -86,6 +94,17 @@
Include="$(ArtifactsBinDir)InProcessRequestHandler\$(NativePlatform)\$(Configuration)\aspnetcorev2_inprocess.pdb" />
</ItemGroup>

<Target Name="_AddExtensionsSymbolsToSymbolPack" BeforeTargets="GetFilesToPackage">
<!-- Explicitly include symbols for libraries we redistribute from runtime -->
<ItemGroup>
<_TransportPdbs Include="$(PkgMicrosoft_Internal_Runtime_AspNetCore_Transport)\**\*.pdb"
Exclude="$(PkgMicrosoft_Internal_Runtime_AspNetCore_Transport)\**\*.ni.pdb" />

<_SymbolFilesToPackage Include="@(_TransportPdbs)"
Condition="'@(ExternalAspNetCoreAppReference->AnyHaveMetadataValue('Identity', '%(Filename)'))' == 'true'" />
</ItemGroup>
</Target>

<Target Name="_WarnAboutUnbuiltNativeDependencies"
BeforeTargets="Build"
Condition=" '$(UseIisNativeAssets)' == 'true' AND !$(BuildNative) AND
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
<GenerateVSInsertionPackages>true</GenerateVSInsertionPackages>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Internal.Runtime.AspNetCore.Transport"
Version="$(MicrosoftInternalRuntimeAspNetCoreTransportVersion)"
ExcludeAssets="All"
GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup>
<Reference Include="@(AspNetCoreAppReference);@(AspNetCoreAppReferenceAndPackage);@(ExternalAspNetCoreAppReference)">
<IncludeAssets>Runtime;Native</IncludeAssets>
Expand Down Expand Up @@ -83,6 +90,17 @@
Include="$(ArtifactsBinDir)InProcessRequestHandler\$(NativePlatform)\$(Configuration)\aspnetcorev2_inprocess.pdb" />
</ItemGroup>

<Target Name="_AddExtensionsSymbolsToSymbolPack" BeforeTargets="GetFilesToPackage">
<!-- Explicitly include symbols for libraries we redistribute from runtime -->
<ItemGroup>
<_TransportPdbs Include="$(PkgMicrosoft_Internal_Runtime_AspNetCore_Transport)\**\*.pdb"
Exclude="$(PkgMicrosoft_Internal_Runtime_AspNetCore_Transport)\**\*.ni.pdb" />

<_SymbolFilesToPackage Include="@(_TransportPdbs)"
Condition="'@(ExternalAspNetCoreAppReference->AnyHaveMetadataValue('Identity', '%(Filename)'))' == 'true'" />
</ItemGroup>
</Target>

<Target Name="_WarnAboutUnbuiltNativeDependencies"
BeforeTargets="Build"
Condition=" '$(UseIisNativeAssets)' == 'true' AND !$(BuildNative) AND
Expand Down
Loading