Pack windows implementation assemblies in windowsdesktop transport package (#57796)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 20 Aug 2021 07:08:46 +0000 (09:08 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 07:08:46 +0000 (09:08 +0200)
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
src/libraries/Microsoft.Internal.Runtime.WindowsDesktop.Transport/src/Microsoft.Internal.Runtime.WindowsDesktop.Transport.proj

index fa9dc31..111b80c 100644 (file)
@@ -16,7 +16,8 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <!-- Requires Private=true to calculate ReferenceCopyLocalPaths items. -->
-    <ProjectReference Include="@(WindowsDesktopCoreAppLibrary->'$(LibrariesProjectRoot)%(Identity)\src\%(Identity).csproj')" PrivateAssets="all" Pack="true" Private="true" IncludeReferenceAssemblyInPackage="true" />
+    <!-- Requires Private=true to calculate ReferenceCopyLocalPaths items.
+         ReferringTargetFramework is set to $(NetCoreAppCurrent)-windows so that we pack the Windows specific implementation assemblies -->
+    <ProjectReference Include="@(WindowsDesktopCoreAppLibrary->'$(LibrariesProjectRoot)%(Identity)\src\%(Identity).csproj')" ReferringTargetFramework="$(NetCoreAppCurrent)-windows" PrivateAssets="all" Pack="true" Private="true" IncludeReferenceAssemblyInPackage="true" />
   </ItemGroup>
 </Project>