Remove duplicate System.Private.CoreLib.ni.pdb symbol file from the crossgen2 symbol...
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Wed, 12 Aug 2020 18:56:04 +0000 (11:56 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 18:56:04 +0000 (18:56 +0000)
src/installer/pkg/projects/netcoreapp/pkg/Microsoft.NETCore.App.Crossgen2.pkgproj

index e9fc92b..d652108 100644 (file)
       <File Include="@(Crossgen2File)">
         <TargetPath>tools</TargetPath>
       </File>
+      <!-- 
+        System.Private.CoreLib's R2R pdb ends up in two locations (CoreCLR and the depproj output).
+        Remove them here and let the symbol file location infra find exactly one.
+      -->
+      <CoreLibSymbolFile Include="@(Crossgen2File)" Condition="'%(FileName)%(Extension)' == 'System.Private.CoreLib.ni.pdb'" />
+      <File Remove="@(CoreLibSymbolFile)" />
     </ItemGroup>
 
   </Target>