Bundle runtime graph file in SDK

This commit is contained in:
Daniel Plaisted 2019-01-03 14:58:20 -08:00
parent c5d3b0ca36
commit 0af7d1c187
2 changed files with 11 additions and 0 deletions

View file

@ -168,6 +168,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<BundledNETStandardTargetFrameworkVersion>$(_NETStandardTargetFrameworkVersion)</BundledNETStandardTargetFrameworkVersion>
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
<BundledRuntimeIdentifierGraphFile>%24(MSBuildThisFileDirectory)runtime.json</BundledRuntimeIdentifierGraphFile>
@(BundledVersionsVariable->'<%(Identity)>%(Value)</%(Identity)>', '
')
<NETCoreSdkVersion>$(SdkVersion)</NETCoreSdkVersion>
@ -269,4 +270,13 @@ Copyright (c) .NET Foundation. All rights reserved.
Lines="$(BundledBundledCliToolsPropsContent)"
Overwrite="true" />
</Target>
<Target Name="LayoutRuntimeGraph"
DependsOnTargets="GenerateBundledVersionsProps">
<Copy SourceFiles="$(NuGetPackageRoot)/microsoft.netcore.platforms/$(_NETCorePlatformsPackageVersion)/runtime.json"
DestinationFiles="$(SdkOutputDirectory)runtime.json"
SkipUnchangedFiles="true"/>
</Target>
</Project>

View file

@ -288,6 +288,7 @@
ExtractBundledComponents;
GenerateVersionFile;
GenerateBundledVersions;
LayoutRuntimeGraph;
LayoutTemplates;
LayoutBundledTools;
RetargetTools;