diff options
Diffstat (limited to 'eng/liveBuilds.targets')
-rw-r--r-- | eng/liveBuilds.targets | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets index a8e8fffe470..0583f48aed5 100644 --- a/eng/liveBuilds.targets +++ b/eng/liveBuilds.targets @@ -49,6 +49,7 @@ <CoreCLRCrossTargetComponentDirName Condition="'$(TargetArchitecture)' == 'arm' and '$(BuildArchitecture)' != 'arm' and '$(TargetsWindows)' == 'true'">x86</CoreCLRCrossTargetComponentDirName> <CoreCLRCrossTargetComponentDirName Condition="'$(TargetArchitecture)' == 'arm' and '$(BuildArchitecture)' != 'arm' and '$(TargetsLinux)' == 'true'">x64</CoreCLRCrossTargetComponentDirName> <CoreCLRCrossTargetComponentDirName Condition="'$(TargetArchitecture)' == 'armel' and '$(BuildArchitecture)' != 'armel' and '$(TargetsLinux)' == 'true'">x64</CoreCLRCrossTargetComponentDirName> + <SingleFileHostSourcePath>$(CoreCLRArtifactsPath)/corehost/singlefilehost$(ExeSuffix)</SingleFileHostSourcePath> </PropertyGroup> <Target Name="ResolveRuntimeFilesFromLocalBuild"> @@ -222,4 +223,18 @@ <PropertyGroup> <BundledRuntimeIdentifierGraphFile>$(RuntimeIdGraphDefinitionFile)</BundledRuntimeIdentifierGraphFile> </PropertyGroup> + + <Target Name="RewriteRuntimePackDir" + Condition="'$(RunningPublish)' == 'true'" + DependsOnTargets="ResolveRuntimeFilesFromLocalBuild" + BeforeTargets="ResolveRuntimePackAssets"> + <ItemGroup> + <!-- Remove AspNetCore runtime pack since we don't build it locally --> + <ResolvedRuntimePack Remove="Microsoft.AspNetCore.App.Runtime.$(RuntimeIdentifier)" /> + + <ResolvedRuntimePack Update="Microsoft.NETCore.App.Runtime.$(RuntimeIdentifier)"> + <PackageDirectory>$(MicrosoftNetCoreAppRuntimePackDir)</PackageDirectory> + </ResolvedRuntimePack> + </ItemGroup> + </Target> </Project> |