Skip to content

Commit

Permalink
Make coreclr symbols download incremental (dotnet#24556)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern authored and Paulo Janotti committed Oct 31, 2017
1 parent 83232e2 commit f88bf84
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions external/runtime/runtime.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,16 @@
BeforeTargets="DownloadAndUnzipSymbolPackage">

<ItemGroup>
<SymbolPackagesToDownload Include="@(ReferenceCopyLocalPaths->'%(NuGetPackageId)')" Condition="$([System.String]::Copy('%(Identity)').EndsWith('System.Private.CoreLib.dll'))">
<_CoreCLRSymbolPackagesToDownload Include="@(ReferenceCopyLocalPaths->'%(NuGetPackageId)')" Condition="$([System.String]::Copy('%(Identity)').EndsWith('System.Private.CoreLib.dll'))">
<Url>https://dotnet.myget.org/F/dotnet-core/symbols/%(NuGetPackageId)/%(NuGetPackageVersion)/</Url>
<DestinationFile>%(NuGetPackageId).%(NuGetPackageVersion).symbols.nupkg.zip</DestinationFile>
<UnzipDestinationDir>$(SymbolPackagesDir)/%(NuGetPackageId).%(NuGetPackageVersion)</UnzipDestinationDir>
</SymbolPackagesToDownload>
</_CoreCLRSymbolPackagesToDownload>
</ItemGroup>

<!-- Calculate the packages to download incrementally if we haven't downloaded them -->
<ItemGroup>
<SymbolPackagesToDownload Include="@(_CoreCLRSymbolPackagesToDownload)" Condition="!Exists('%(UnzipDestinationDir)')" />
</ItemGroup>
</Target>

Expand All @@ -94,12 +99,12 @@
DependsOnTargets="CalculateCoreCLRSymbolPackageProperties;DownloadAndUnzipSymbolPackage"
Condition="'$(CoreCLROverridePath)' == '' AND '$(DownloadCoreCLRSymbols)' != 'false'">

<Warning Text="Failed to download CoreCLR symbols" Condition="@(SymbolPackagesDownloaded) == ''" />
<Warning Text="Failed to download CoreCLR symbols" Condition="'@(SymbolPackagesDownloaded)' == '' AND '@(SymbolPackagesToDownload)' != ''" />

<ItemGroup>
<_CoreCLRSymbolFiles Condition="@(SymbolPackagesDownloaded) != ''" Include="%(SymbolPackagesDownloaded.UnzipDestinationDir)/runtimes/$(NugetRuntimeIdentifier)/native/*.pdb" />
<_CoreCLRSymbolFiles Condition="@(SymbolPackagesDownloaded) != ''" Include="%(SymbolPackagesDownloaded.UnzipDestinationDir)/runtimes/$(NugetRuntimeIdentifier)/native/*.dbg" />
<ReferenceCopyLocalPaths Condition="@(SymbolPackagesDownloaded) != ''" Include="@(_CoreCLRSymbolFiles)"/>
<_CoreCLRSymbolFiles Include="%(_CoreCLRSymbolPackagesToDownload.UnzipDestinationDir)/runtimes/$(NugetRuntimeIdentifier)/native/*.pdb" />
<_CoreCLRSymbolFiles Include="%(_CoreCLRSymbolPackagesToDownload.UnzipDestinationDir)/runtimes/$(NugetRuntimeIdentifier)/native/*.dbg" />
<ReferenceCopyLocalPaths Include="@(_CoreCLRSymbolFiles)"/>
</ItemGroup>
</Target>

Expand Down

0 comments on commit f88bf84

Please sign in to comment.