Skip to content

Commit

Permalink
Move RequireBuildRid to pkgproj
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Jul 12, 2021
1 parent 3c0265f commit b152d62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<Project DefaultTargets="Build">
<PropertyGroup>
<BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>
<RequiresBuildRid Condition="'$(BuildingAnOfficialBuildLeg)' != 'true' or '$(RuntimeFlavor)' != 'Mono'">true</RequiresBuildRid>
<ExcludeFromBuildRID>win*;linux-musl*</ExcludeFromBuildRID>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
<PropertyGroup>
<SkipPackageFileCheck>true</SkipPackageFileCheck>
<SkipValidatePackage>true</SkipValidatePackage>
</PropertyGroup>
<ItemGroup Condition="'$(PackageTargetRuntime)' != '' and !$(PackageTargetRuntime.ToLowerInvariant.StartsWith('win'))">
<ItemGroup Condition="'$(PackageTargetRuntime)' == 'linux-arm' or '$(PackageTargetRuntime)' == 'linux-arm64' or '$(PackageTargetRuntime)' == 'linux-x64' or '$(PackageTargetRuntime)' == 'osx-x64' or '$(PackageTargetRuntime)' == 'freebsd-x64'">
<File Include="$(NativeBinDir)$(LibPrefix)System.IO.Ports.Native$(LibSuffix)" >
<TargetPath>runtimes/$(OutputRid)/native</TargetPath>
</File>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<Project DefaultTargets="Build">
<PropertyGroup>
<RequiresBuildRid Condition="'$(RuntimeFlavor)' != 'Mono'">true</RequiresBuildRid>
<ExcludeFromBuildRID>win*</ExcludeFromBuildRID>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />

<ItemGroup Condition="'$(BuildAllConfigurations)' == 'true'">
Expand Down

0 comments on commit b152d62

Please sign in to comment.