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 e8acfa3..a1ec1ea 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))" />