diff options
author | Viktor Hofer <viktor.hofer@microsoft.com> | 2020-12-10 18:54:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 18:54:41 +0300 |
commit | adad810e664f53211aed98f0f06b6beeaede180c (patch) | |
tree | b0a8174c29e18f037747265ea7030a96bd2d6240 /eng/targetingpacks.targets | |
parent | f6949e4d4bcffac0f0e1217c353f2e09cbbe3bf2 (diff) |
Add Known* items to the local targeting pack resolution (#45874)
* Add Known* items to the local targeting pack resolution
Add the required Known* items so that the ProcessFrameworkReferences
logic in the SDK knows about these and is able to create Resolved* items
that we later update to point to our local packs.
This is required when building with an SDK that doesn't support the
project's TargetFramework yet.
Diffstat (limited to 'eng/targetingpacks.targets')
-rw-r--r-- | eng/targetingpacks.targets | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/eng/targetingpacks.targets b/eng/targetingpacks.targets index ceb2d726202..0d332e688d0 100644 --- a/eng/targetingpacks.targets +++ b/eng/targetingpacks.targets @@ -7,6 +7,33 @@ <GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks> </PropertyGroup> + <!-- Add Known* items if the SDK doesn't support the TargetFramework yet. --> + <ItemGroup Condition="'$(_UseLocalTargetingRuntimePack)' == 'true'"> + <KnownFrameworkReference Include="$(SharedFrameworkName)" + DefaultRuntimeFrameworkVersion="$(ProductVersion)" + IsTrimmable="true" + LatestRuntimeFrameworkVersion="$(ProductVersion)" + RuntimeFrameworkName="$(SharedFrameworkName)" + RuntimePackNamePatterns="$(SharedFrameworkName).Runtime.**RID**" + RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;ios-arm64;ios-arm;ios-x64;ios-x86;tvos-arm64;tvos-x64;android-arm64;android-arm;android-x64;android-x86;browser-wasm" + TargetFramework="$(NetCoreAppCurrent)" + TargetingPackName="$(SharedFrameworkName).Ref" + TargetingPackVersion="$(ProductVersion)" + Condition="'@(KnownFrameworkReference)' != '' and !@(KnownFrameworkReference->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" /> + <KnownAppHostPack Include="$(SharedFrameworkName)" + AppHostPackNamePattern="$(SharedFrameworkName).Host.**RID**" + AppHostPackVersion="$(ProductVersion)" + AppHostRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86" + TargetFramework="$(NetCoreAppCurrent)" + Condition="'@(KnownAppHostPack)' != '' and !@(KnownAppHostPack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" /> + <KnownCrossgen2Pack Include="$(SharedFrameworkName).Crossgen2" + TargetFramework="$(NetCoreAppCurrent)" + Crossgen2PackNamePattern="$(SharedFrameworkName).Crossgen2.**RID**" + Crossgen2PackVersion="$(ProductVersion)" + Crossgen2RuntimeIdentifiers="linux-musl-x64;linux-x64;win-x64" + Condition="'@(KnownCrossgen2Pack)' != '' and !@(KnownCrossgen2Pack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" /> + </ItemGroup> + <!-- .NETCoreApp 2.x DisableImplicitAssemblyReferences support. --> <Choose> <When Condition="'$(DisableImplicitAssemblyReferences)' == 'true' and |