Skip to content

Commit 73447ee

Browse files
authored
Allow setting KnownAppHostPack and KnownRuntimePack (#46735)
1 parent 849021b commit 73447ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

eng/tools/GenerateFiles/Directory.Build.targets.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@
4242
<RuntimePackRuntimeIdentifiers Condition=" '$(PortableBuild)' == 'false' ">$(TargetRuntimeIdentifier)</RuntimePackRuntimeIdentifiers>
4343
</KnownFrameworkReference>
4444

45+
<KnownAppHostPack Update="Microsoft.NETCore.App">
46+
<AppHostPackVersion
47+
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRuntimeVersion}</AppHostPackVersion>
48+
<AppHostRuntimeIdentifiers Condition=" '$(PortableBuild)' == 'false' ">$(TargetRuntimeIdentifier)</AppHostRuntimeIdentifiers>
49+
</KnownAppHostPack>
50+
51+
<KnownRuntimePack Update="Microsoft.NETCore.App">
52+
<LatestRuntimeFrameworkVersion
53+
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRuntimeVersion}</LatestRuntimeFrameworkVersion>
54+
<AppHostRuntimeIdentifiers Condition=" '$(PortableBuild)' == 'false' ">$(TargetRuntimeIdentifier)</AppHostRuntimeIdentifiers>
55+
</KnownRuntimePack>
56+
4557
<KnownCrossgen2Pack Update="Microsoft.NETCore.App.Crossgen2" Condition=" '$(PortableBuild)' == 'false' ">
4658
<Crossgen2PackVersion
4759
Condition=" '%(TargetFramework)' == '${DefaultNetCoreTargetFramework}' ">${MicrosoftNETCoreAppRuntimeVersion}</Crossgen2PackVersion>

0 commit comments

Comments
 (0)