Merge pull request #239 from dsplaisted/include-runtime-graph
Bundle runtime graph file in SDK
This commit is contained in:
commit
e46d7b966e
3 changed files with 19 additions and 0 deletions
|
@ -3,8 +3,16 @@
|
|||
<TargetFramework>$(CoreSdkTargetFramework)</TargetFramework>
|
||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||
<CopyBuildOutputToPublishDirectory>false</CopyBuildOutputToPublishDirectory>
|
||||
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Explicitlty reference Microsoft.NETCore.App package here, using the version from Version.props, instead
|
||||
of the version from the stage 0 SDK. -->
|
||||
<PackageReference Include="Microsoft.NETCore.App" Version="$(MicrosoftNETCoreAppPackageVersion)"
|
||||
PrivateAssets="All" Publish="true"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="targets\DownloadPackage.csproj" />
|
||||
<None Include="targets\LayoutTool.csproj" />
|
||||
|
|
|
@ -168,6 +168,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
<BundledNETStandardTargetFrameworkVersion>$(_NETStandardTargetFrameworkVersion)</BundledNETStandardTargetFrameworkVersion>
|
||||
<BundledNETStandardPackageVersion>$(_NETStandardLibraryPackageVersion)</BundledNETStandardPackageVersion>
|
||||
<BundledNETCorePlatformsPackageVersion>$(_NETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
|
||||
<BundledRuntimeIdentifierGraphFile>%24(MSBuildThisFileDirectory)RuntimeIdentifierGraph.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)RuntimeIdentifierGraph.json"
|
||||
SkipUnchangedFiles="true"/>
|
||||
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -288,6 +288,7 @@
|
|||
ExtractBundledComponents;
|
||||
GenerateVersionFile;
|
||||
GenerateBundledVersions;
|
||||
LayoutRuntimeGraph;
|
||||
LayoutTemplates;
|
||||
LayoutBundledTools;
|
||||
RetargetTools;
|
||||
|
|
Loading…
Reference in a new issue