Fix condition for building runtime.native.System.IO.Ports (#34738)
authorEric StJohn <ericstj@microsoft.com>
Fri, 10 Apr 2020 16:32:01 +0000 (09:32 -0700)
committerGitHub <noreply@github.com>
Fri, 10 Apr 2020 16:32:01 +0000 (09:32 -0700)
src/libraries/pkg/runtime.native.System.IO.Ports/runtime.native.System.IO.Ports.proj

index e8acfa38cd324a5726f69c44c0bfb3235c8b77c1..a1ec1ea4bd1c980cadb2bcecae47db7566984a4c 100644 (file)
@@ -1,9 +1,9 @@
 <Project DefaultTargets="Build">
   <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
 
-  <ItemGroup>
-    <!-- identity project, runtime specific projects are included through netcoreapp.rids.props -->
-    <Project Include="$(MSBuildProjectName).pkgproj" Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'" />
+  <ItemGroup Condition="'$(BuildAllConfigurations)' == 'true'">
+    <!-- identity project built in AllConfigurations leg, runtime specific projects are included through netcoreapp.rids.props -->
+    <Project Include="$(MSBuildProjectName).pkgproj" />
   </ItemGroup>
 
   <Import Project="$([MSBuild]::GetPathOfFileAbove(dir.traversal.targets))" />