Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Fernandez Madero <safern@microsoft.com>2017-10-04 21:17:00 +0300
committerGitHub <noreply@github.com>2017-10-04 21:17:00 +0300
commitf628457a906daedb32bd626517c99b39410c5750 (patch)
tree82e0db1363d0af947a5d6f114801010623b2517b /external
parent7d1b1e97f1999bf38eb2ce8ce84c209ab7a5d83b (diff)
Add targets to download CoreCLR symbols (#24294)
* Add targets to download CoreCLR symbols * Clean up now that target was moved to Symbols.targets * Add condition to disable target and add warning if it failed to download CoreCLR symbols
Diffstat (limited to 'external')
-rw-r--r--external/runtime/runtime.depproj27
1 files changed, 27 insertions, 0 deletions
diff --git a/external/runtime/runtime.depproj b/external/runtime/runtime.depproj
index 19f5f59ff8..51d4a9ed33 100644
--- a/external/runtime/runtime.depproj
+++ b/external/runtime/runtime.depproj
@@ -73,6 +73,33 @@
<Exec Command="chmod +x $(TestHostRootPath)dotnet" Condition="'$(RunningOnUnix)' == 'true'"/>
</Target>
+ <PropertyGroup>
+ <_CoreCLRPackageId>runtime.$(NugetRuntimeIdentifier).Microsoft.NETCore.Runtime.CoreCLR</_CoreCLRPackageId>
+ <SymbolPackagesDir>$(PackagesDir)symbolpackages/</SymbolPackagesDir>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <SymbolPackagesToDownload Include="$(_CoreCLRPackageId)">
+ <Url>https://dotnet.myget.org/F/dotnet-core/symbols/$(_CoreCLRPackageId)/$(CoreClrPackageVersion)/</Url>
+ <DestinationFile>$(_CoreCLRPackageId).$(CoreClrPackageVersion).symbols.nupkg.zip</DestinationFile>
+ <UnzipDestinationDir>$(SymbolPackagesDir)/$(_CoreCLRPackageId).$(CoreClrPackageVersion)</UnzipDestinationDir>
+ </SymbolPackagesToDownload>
+ </ItemGroup>
+
+ <Target Name="BinPlaceCoreCLRSymbols"
+ AfterTargets="ResolveNuGetPackages"
+ DependsOnTargets="DownloadAndUnzipSymbolPackage"
+ Condition="'$(CoreCLROverridePath)' == '' AND '$(DownloadCoreCLRSymbols)' != 'false'">
+
+ <Warning Text="Failed to download CoreCLR symbols" Condition="@(SymbolPackagesDownloaded) == ''" />
+
+ <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)"/>
+ </ItemGroup>
+ </Target>
+
<Target Name="OverrideRuntime"
Condition="'$(CoreCLROverridePath)' != ''"
AfterTargets="ResolveNuGetPackages;FilterNugetPackages">