* Restore missing native *.ni.pdb file from the Microsoft.NETCore.Runtime.CoreCLR package
DLLs that have native code, need both the *.pdb (for IL information) and the *.ni.pdb (for
native information).
When System.Private.Corlib was renamed from System.Private.Corlib.ni.pdb to System.Private.Corlib,
the logic that decides what goes into the Microsoft.NETCore.Runtime.CoreCLR package lost
the *.ni.pdb for System.Private.Corlib.
This change basically causes this logic to search both for *.ni.pdb as well as the *.pdb file and
thus fixes this issue.
* Remove unnecessary condition (review feedback)
Commit migrated from https://github.com/dotnet/coreclr/commit/
597a7996c5a7d2a0b52e0c9b404f6fbff0d34aad
<WindowsNativeFile Include="@(NativeWithSymbolFile)"
Condition="'%(NativeWithSymbolFile.Extension)'=='.dll' OR '%(NativeWithSymbolFile.Extension)'=='.exe'" />
<WindowsSymbolFile Include="@(WindowsNativeFile -> '%(RootDir)%(Directory)PDB\%(Filename).pdb')" />
+ <!-- Crossgened files (on windows) have both a *.pdb and a *.ni.pdb symbol file. Include the *.ni.pdb file as well if it exists. -->
+ <WindowsSymbolFile Include="@(WindowsNativeFile -> '%(RootDir)%(Directory)PDB\%(Filename).ni.pdb')" />
<!--
Search for all xplat symbol file extensions on every xplat native binary. Some binaries have