Skip to content
代码片段 群组 项目
未验证 提交 a91ec31e 编辑于 作者: Ivan Diaz Sanchez's avatar Ivan Diaz Sanchez 提交者: GitHub
浏览文件

Merge pull request #41855 from ivdiazsa/full_composites

(Corrected) Generate Full Composite Images of .NET and ASP.NET Bundled Together
No related branches found
No related tags found
无相关合并请求
...@@ -293,7 +293,9 @@ stages: ...@@ -293,7 +293,9 @@ stages:
path: artifacts/bin/ANCMv2 path: artifacts/bin/ANCMv2
- name: Windows_ANCMIISExpress_Msi - name: Windows_ANCMIISExpress_Msi
path: artifacts/bin/AncmIISExpressV2 path: artifacts/bin/AncmIISExpressV2
- name: Windows_CompositeImages
path: artifacts/bin/Microsoft.AspNetCore.App.Runtime/**/Composite
# Build Windows ARM # Build Windows ARM
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
......
...@@ -222,6 +222,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant ...@@ -222,6 +222,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
<CrossGenDependsOn Condition=" '$(CrossgenOutput)' == 'true' "> <CrossGenDependsOn Condition=" '$(CrossgenOutput)' == 'true' ">
$(CrossGenDependsOn); $(CrossGenDependsOn);
_BatchCrossGenAssemblies; _BatchCrossGenAssemblies;
_GenerateComposites;
</CrossGenDependsOn> </CrossGenDependsOn>
<!-- _GetBuildOutputFilesWithTfm executes in a separate context from Build, GenerateNuspec, and so on. --> <!-- _GetBuildOutputFilesWithTfm executes in a separate context from Build, GenerateNuspec, and so on. -->
<TargetsForTfmSpecificBuildOutput> <TargetsForTfmSpecificBuildOutput>
...@@ -461,6 +462,36 @@ This package is an internal implementation of the .NET Core SDK and is not meant ...@@ -461,6 +462,36 @@ This package is an internal implementation of the .NET Core SDK and is not meant
StandardOutputImportance="High" /> StandardOutputImportance="High" />
</Target> </Target>
<Target Name="_GenerateComposites"
DependsOnTargets="_ExpandRuntimePackageRoot">
<PropertyGroup>
<CompositeTargetDir>$(TargetDir)Composite\</CompositeTargetDir>
<ManagedAssetsFullPath>$(RuntimePackageRoot)$(ManagedAssetsPackagePath)</ManagedAssetsFullPath>
<NativeAssetsFullPath>$(RuntimePackageRoot)$(NativeAssetsPackagePath)</NativeAssetsFullPath>
<BaseAssemblies>$(ManagedAssetsFullPath)\*.dll</BaseAssemblies>
<BaseAssemblies Condition="Exists('$(ManagedAssetsFullPath)') and '$(TargetOsName)' == 'win'">$(BaseAssemblies) $(NativeAssetsFullPath)\*.dll</BaseAssemblies>
<CompositeArgs>--composite</CompositeArgs>
<CompositeArgs>$(CompositeArgs) --targetarch:$(TargetArchitecture)</CompositeArgs>
<CompositeArgs>$(CompositeArgs) --targetos:$(Crossgen2TargetOs)</CompositeArgs>
<CompositeArgs>$(CompositeArgs) $(BaseAssemblies)</CompositeArgs>
<CompositeArgs>$(CompositeArgs) $(TargetDir)*.dll</CompositeArgs>
<CompositeArgs>$(CompositeArgs) --out:&quot;$(CompositeTargetDir)full-composite.r2r.dll&quot;</CompositeArgs>
</PropertyGroup>
<RemoveDir Directories="$(CompositeTargetDir)" />
<MakeDir Directories="$(CompositeTargetDir)" />
<ItemGroup>
<NativeSharedObjects Include="$(NativeAssetsFullPath)\*.so" Condition="Exists('$(NativeAssetsFullPath)') and '$(TargetOsName)' != 'win'" />
</ItemGroup>
<Exec Command="&quot;$(CrossgenToolPath)&quot; $(CompositeArgs)" />
<Copy SourceFiles="@(NativeSharedObjects)" DestinationFolder="$(CompositeTargetDir)" Condition="'$(TargetOsName)' != 'win'" />
</Target>
<!-- <!--
######################################### #########################################
Targets related to creating .zip/.tar.gz Targets related to creating .zip/.tar.gz
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册