1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 11:37:04 +09:00

Rename ArchGroup -> TargetArchitecture (#34260)

Most places use TargetArchitecture already. These two properties seems to be always set to the same value.
This commit is contained in:
Jan Kotas 2020-03-29 17:20:20 -07:00 committed by GitHub
parent bfee6381cb
commit 19c7f5a704
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 192 additions and 202 deletions

View file

@ -6,7 +6,7 @@ once before you can iterate and work on a given library project.
- Setup tools (currently done in restore in build.cmd/sh) - Setup tools (currently done in restore in build.cmd/sh)
- Restore external dependencies - Restore external dependencies
- CoreCLR - Copy to `bin\runtime\$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)` - CoreCLR - Copy to `bin\runtime\$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)`
- Netstandard Library - Copy to `bin\ref\netstandard2.0` - Netstandard Library - Copy to `bin\ref\netstandard2.0`
- NetFx targeting pack - Copy to `bin\ref\net472` - NetFx targeting pack - Copy to `bin\ref\net472`
- Build targeting pack - Build targeting pack
@ -31,7 +31,7 @@ The following are the properties associated with each build pivot
- `$(BuildTargetFramework) -> netstandard2.1 | netcoreapp5.0 | net472` - `$(BuildTargetFramework) -> netstandard2.1 | netcoreapp5.0 | net472`
- `$(TargetOS) -> Windows | Linux | OSX | FreeBSD | [defaults to running OS when empty]` - `$(TargetOS) -> Windows | Linux | OSX | FreeBSD | [defaults to running OS when empty]`
- `$(Configuration) -> Release | [defaults to Debug when empty]` - `$(Configuration) -> Release | [defaults to Debug when empty]`
- `$(ArchGroup) - x86 | x64 | arm | arm64 | [defaults to x64 when empty]` - `$(TargetArchitecture) - x86 | x64 | arm | arm64 | [defaults to x64 when empty]`
- `$(RuntimeOS) - win7 | osx10.10 | ubuntu.14.04 | [any other RID OS+version] | [defaults to running OS when empty]` See [RIDs](https://github.com/dotnet/runtime/tree/master/src/libraries/pkg/Microsoft.NETCore.Platforms) for more info. - `$(RuntimeOS) - win7 | osx10.10 | ubuntu.14.04 | [any other RID OS+version] | [defaults to running OS when empty]` See [RIDs](https://github.com/dotnet/runtime/tree/master/src/libraries/pkg/Microsoft.NETCore.Platforms) for more info.
For more information on various targets see also [.NET Standard](https://github.com/dotnet/standard/blob/master/docs/versions.md) For more information on various targets see also [.NET Standard](https://github.com/dotnet/standard/blob/master/docs/versions.md)
@ -45,7 +45,7 @@ Each project will define a set of supported TargetFrameworks
<PropertyGroup> <PropertyGroup>
``` ```
- `$(BuildSettings) -> $(BuildTargetFramework)[-$(TargetOS)][-$(Configuration)][-$(ArchGroup)]` - `$(BuildSettings) -> $(BuildTargetFramework)[-$(TargetOS)][-$(Configuration)][-$(TargetArchitecture)]`
- Note this property should be file path safe and thus can be used in file names or directories that need to a unique path for a project configuration. - Note this property should be file path safe and thus can be used in file names or directories that need to a unique path for a project configuration.
- The only required Build Settings value is the `$(BuildTargetFramework)` the others are optional. - The only required Build Settings value is the `$(BuildTargetFramework)` the others are optional.
@ -79,9 +79,9 @@ When we have a project that has a `netstandard2.0` target framework that means t
## Options for building ## Options for building
A full or individual project build is centered around BuildTargetFramework, TargetOS, Configuration and ArchGroup. A full or individual project build is centered around BuildTargetFramework, TargetOS, Configuration and TargetArchitecture.
1. `$(BuildTargetFramework), $(TargetOS), $(Configuration), $(ArchGroup)` can individually be passed in to change the default values. 1. `$(BuildTargetFramework), $(TargetOS), $(Configuration), $(TargetArchitecture)` can individually be passed in to change the default values.
2. If nothing is passed to the build then we will default value of these properties from the environment. Example: `netcoreapp5.0-[TargetOS Running On]-Debug-x64`. 2. If nothing is passed to the build then we will default value of these properties from the environment. Example: `netcoreapp5.0-[TargetOS Running On]-Debug-x64`.
3. While Building an individual project from the VS, we build the project for all latest netcoreapp target frameworks. 3. While Building an individual project from the VS, we build the project for all latest netcoreapp target frameworks.
@ -130,7 +130,7 @@ The output for the src product build will be a flat runtime folder into the foll
`bin\runtime\$(BuildSettings)` `bin\runtime\$(BuildSettings)`
Note: The `BuildSettings` is a global property and not the project setting because we need all projects to output to the same runtime directory no matter which compatible target framework we select and build the project with. Note: The `BuildSettings` is a global property and not the project setting because we need all projects to output to the same runtime directory no matter which compatible target framework we select and build the project with.
```<BuildSettings>$(BuildTargetFramework)-$(TargetOS)-(Configuration)-(ArchGroup)</BuildSettings>``` ```<BuildSettings>$(BuildTargetFramework)-$(TargetOS)-(Configuration)-(TargetArchitecture)</BuildSettings>```
## pkg ## pkg
In the pkg directory for the library there should be only **one** `.pkgproj` for the primary package for the library. If the library has platform-specific implementations those should be split into platform specific projects in a subfolder for each platform. (see [Package projects](./package-projects.md)) In the pkg directory for the library there should be only **one** `.pkgproj` for the primary package for the library. If the library has platform-specific implementations those should be split into platform specific projects in a subfolder for each platform. (see [Package projects](./package-projects.md))

View file

@ -77,7 +77,7 @@ The build settings (BuildTargetFramework, TargetOS, Configuration, Architecture)
- `-framework|-f` identifies the target framework for the build. Possible values include `netcoreapp5.0` (currently the latest .NET Core version) or `net472`. (msbuild property `BuildTargetFramework`) - `-framework|-f` identifies the target framework for the build. Possible values include `netcoreapp5.0` (currently the latest .NET Core version) or `net472`. (msbuild property `BuildTargetFramework`)
- `-os` identifies the OS for the build. It defaults to the OS you are running on but possible values include `Windows_NT`, `Unix`, `Linux`, or `OSX`. (msbuild property `TargetOS`) - `-os` identifies the OS for the build. It defaults to the OS you are running on but possible values include `Windows_NT`, `Unix`, `Linux`, or `OSX`. (msbuild property `TargetOS`)
- `-configuration|-c Debug|Release` controls the optimization level the compilers use for the build. It defaults to `Debug`. (msbuild property `Configuration`) - `-configuration|-c Debug|Release` controls the optimization level the compilers use for the build. It defaults to `Debug`. (msbuild property `Configuration`)
- `-arch` identifies the architecture for the build. It defaults to `x64` but possible values include `x64`, `x86`, `arm`, or `arm64`. (msbuild property `ArchGroup`) - `-arch` identifies the architecture for the build. It defaults to `x64` but possible values include `x64`, `x86`, `arm`, or `arm64`. (msbuild property `TargetArchitecture`)
For more details on the build settings see [project-guidelines](../../../coding-guidelines/project-guidelines.md#build-pivots). For more details on the build settings see [project-guidelines](../../../coding-guidelines/project-guidelines.md#build-pivots).
@ -160,7 +160,7 @@ Under the `src` directory is a set of directories, each of which represents a pa
For example the `src\libraries\System.Diagnostics.DiagnosticSource` directory holds the source code for the System.Diagnostics.DiagnosticSource.dll assembly. For example the `src\libraries\System.Diagnostics.DiagnosticSource` directory holds the source code for the System.Diagnostics.DiagnosticSource.dll assembly.
You can build the DLL for System.Diagnostics.DiagnosticSource.dll by going to the `src\libraries\System.Diagnostics.DiagnosticsSource\src` directory and typing `dotnet build`. The DLL ends up in `artifacts\bin\AnyOS.AnyCPU.Debug\System.Diagnostics.DiagnosticSource` as well as `artifacts\bin\runtime\[$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)]`. You can build the DLL for System.Diagnostics.DiagnosticSource.dll by going to the `src\libraries\System.Diagnostics.DiagnosticsSource\src` directory and typing `dotnet build`. The DLL ends up in `artifacts\bin\AnyOS.AnyCPU.Debug\System.Diagnostics.DiagnosticSource` as well as `artifacts\bin\runtime\[$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)]`.
You can build the tests for System.Diagnostics.DiagnosticSource.dll by going to You can build the tests for System.Diagnostics.DiagnosticSource.dll by going to
`src\libraries\System.Diagnostics.DiagnosticSource\tests` and typing `dotnet build`. `src\libraries\System.Diagnostics.DiagnosticSource\tests` and typing `dotnet build`.
@ -202,7 +202,7 @@ One can build in Debug or Release mode from the root by doing `./build.sh -subse
### Building other Architectures ### Building other Architectures
One can build 32- or 64-bit binaries or for any architecture by specifying in the root `./build.sh -subsetCategory libraries -arch [value]` or in a project `/p:ArchGroup=[value]` after the `dotnet build` command. One can build 32- or 64-bit binaries or for any architecture by specifying in the root `./build.sh -subsetCategory libraries -arch [value]` or in a project `/p:TargetArchitecture=[value]` after the `dotnet build` command.
## Working in Visual Studio ## Working in Visual Studio

View file

@ -120,7 +120,7 @@ Example building for armel
src/Native/build-native.sh armel src/Native/build-native.sh armel
--> Output goes to artifacts/bin/runtime/netcoreapp5.0-Linux-Debug-armel --> Output goes to artifacts/bin/runtime/netcoreapp5.0-Linux-Debug-armel
build /p:ArchGroup=x64 /p:BuildNative=false build /p:TargetArchitecture=x64 /p:BuildNative=false
--> Output goes to artifacts/bin/runtime/netcoreapp5.0-Linux-Debug-x64 --> Output goes to artifacts/bin/runtime/netcoreapp5.0-Linux-Debug-x64
``` ```

View file

@ -161,7 +161,7 @@ $failedBuilds = @()
foreach ($config in $configuration) { foreach ($config in $configuration) {
$argumentsWithConfig = $arguments + " -configuration $((Get-Culture).TextInfo.ToTitleCase($config))"; $argumentsWithConfig = $arguments + " -configuration $((Get-Culture).TextInfo.ToTitleCase($config))";
foreach ($singleArch in $arch) { foreach ($singleArch in $arch) {
$argumentsWithArch = "/p:ArchGroup=$singleArch /p:TargetArchitecture=$singleArch " + $argumentsWithConfig $argumentsWithArch = "/p:TargetArchitecture=$singleArch " + $argumentsWithConfig
$env:__DistroRid="win-$singleArch" $env:__DistroRid="win-$singleArch"
Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $argumentsWithArch" Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $argumentsWithArch"
if ($lastExitCode -ne 0) { if ($lastExitCode -ne 0) {

View file

@ -112,7 +112,7 @@ while [[ $# > 0 ]]; do
;; ;;
-arch) -arch)
arch=$2 arch=$2
arguments="$arguments /p:ArchGroup=$2 /p:TargetArchitecture=$2" arguments="$arguments /p:TargetArchitecture=$2"
shift 2 shift 2
;; ;;
-configuration|-c) -configuration|-c)

View file

@ -17,7 +17,7 @@ steps:
$(Build.SourcesDirectory)/src/libraries/sendtohelix.proj $(Build.SourcesDirectory)/src/libraries/sendtohelix.proj
/t:test /t:test
/p:RuntimeFlavor=${{ parameters.runtimeFlavor }} /p:RuntimeFlavor=${{ parameters.runtimeFlavor }}
/p:ArchGroup=${{ parameters.archGroup }} /p:TargetArchitecture=${{ parameters.archGroup }}
/p:Configuration=${{ parameters.configuration }} /p:Configuration=${{ parameters.configuration }}
/p:TargetOS=${{ parameters.targetOS }} /p:TargetOS=${{ parameters.targetOS }}
/p:TestScope=${{ parameters.testScope }} /p:TestScope=${{ parameters.testScope }}

View file

@ -76,7 +76,7 @@ jobs:
$(_runtimeArtifactsPathArg) $(_runtimeArtifactsPathArg)
$(_runtimeOSArg) $(_runtimeOSArg)
/p:RuntimeFlavor=${{ parameters.runtimeFlavor }} /p:RuntimeFlavor=${{ parameters.runtimeFlavor }}
/p:ArchGroup=${{ parameters.archType }} /p:TargetArchitecture=${{ parameters.archType }}
/p:Configuration=${{ parameters.buildConfig }} /p:Configuration=${{ parameters.buildConfig }}
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/overrideCoreclrFromLiveDrop.binlog /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/overrideCoreclrFromLiveDrop.binlog
displayName: Override $(runtimeFlavorName) from live drop displayName: Override $(runtimeFlavorName) from live drop

View file

@ -9,7 +9,7 @@
<RunArguments>$(RunArguments) --logger "trx;LogFileName=$(TrxTestResultsName)"</RunArguments> <RunArguments>$(RunArguments) --logger "trx;LogFileName=$(TrxTestResultsName)"</RunArguments>
<RunArguments>$(RunArguments) --logger "html;LogFileName=$(HtmlTestResultsName)"</RunArguments> <RunArguments>$(RunArguments) --logger "html;LogFileName=$(HtmlTestResultsName)"</RunArguments>
<RunArguments>$(RunArguments) --framework $(TargetFramework)</RunArguments> <RunArguments>$(RunArguments) --framework $(TargetFramework)</RunArguments>
<RunArguments>$(RunArguments) --platform $(ArchGroup)</RunArguments> <RunArguments>$(RunArguments) --platform $(TargetArchitecture)</RunArguments>
<RunArguments Condition="'$(TestDisableParallelization)' != 'true'">$(RunArguments) --parallel</RunArguments> <RunArguments Condition="'$(TestDisableParallelization)' != 'true'">$(RunArguments) --parallel</RunArguments>
<RunArguments Condition="'$(TestBlame)' == 'true'">$(RunArguments) --blame</RunArguments> <RunArguments Condition="'$(TestBlame)' == 'true'">$(RunArguments) --blame</RunArguments>

View file

@ -23,9 +23,9 @@
<OSRid Condition="'$(OSRid)' == '' and '$(_distroRidIndex)' != '-1'">$(_parseDistroRid.SubString(0, $(_distroRidIndex)))</OSRid> <OSRid Condition="'$(OSRid)' == '' and '$(_distroRidIndex)' != '-1'">$(_parseDistroRid.SubString(0, $(_distroRidIndex)))</OSRid>
<OSRid Condition="'$(OSRid)' == ''">win10</OSRid> <OSRid Condition="'$(OSRid)' == ''">win10</OSRid>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(Platform)' != ''">$(Platform)</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(Platform)' != ''">$(Platform)</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == ''">$(BuildArch)</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$(BuildArch)</TargetArchitecture>
<RuntimeOS Condition="'$(RuntimeOS)' == ''">$(OSRid)</RuntimeOS> <RuntimeOS Condition="'$(RuntimeOS)' == ''">$(OSRid)</RuntimeOS>
@ -80,54 +80,54 @@
<When Condition="'$(_runtimeOSFamily)' == 'win'"> <When Condition="'$(_runtimeOSFamily)' == 'win'">
<PropertyGroup> <PropertyGroup>
<!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) --> <!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) -->
<PackageRID>win-$(ArchGroup)</PackageRID> <PackageRID>win-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'osx'"> <When Condition="'$(_runtimeOSFamily)' == 'osx'">
<PropertyGroup> <PropertyGroup>
<PackageRID>osx.10.12-$(ArchGroup)</PackageRID> <PackageRID>osx.10.12-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'freebsd'"> <When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
<PropertyGroup> <PropertyGroup>
<PackageRID>freebsd.11-$(ArchGroup)</PackageRID> <PackageRID>freebsd.11-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'android'"> <When Condition="'$(_runtimeOSFamily)' == 'android'">
<PropertyGroup> <PropertyGroup>
<PackageRID>android.21-$(ArchGroup)</PackageRID> <PackageRID>android.21-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == '1'">android-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'rhel'"> <When Condition="'$(_runtimeOSFamily)' == 'rhel'">
<PropertyGroup> <PropertyGroup>
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID> <PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'alpine'"> <When Condition="'$(_runtimeOSFamily)' == 'alpine'">
<PropertyGroup> <PropertyGroup>
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID> <PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-musl-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">linux-musl-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(RuntimeOS)' == 'linux-musl'"> <When Condition="'$(RuntimeOS)' == 'linux-musl'">
<PropertyGroup> <PropertyGroup>
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID> <PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<Otherwise> <Otherwise>
<PropertyGroup> <PropertyGroup>
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID> <PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</Otherwise> </Otherwise>
</Choose> </Choose>
@ -178,8 +178,8 @@
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/> <BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
<BuildRID Include="$(PackageRID)" <BuildRID Include="$(PackageRID)"
Condition="'$(_isSupportedOSGroup)' == 'true'"> Condition="'$(_isSupportedOSGroup)' == 'true'">
<Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform> <Platform Condition="'$(TargetArchitecture)' == 'x64'">amd64</Platform>
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform> <Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
</BuildRID> </BuildRID>
</ItemGroup> </ItemGroup>

View file

@ -6,7 +6,6 @@
<TargetFramework>netstandard1.3</TargetFramework> <TargetFramework>netstandard1.3</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<Platforms>x64;x86</Platforms> <Platforms>x64;x86</Platforms>
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates <!-- We're binplacing these into an existing publish layout so that F5 build in VS updates

View file

@ -8,7 +8,6 @@
<DefineConstants>READYTORUN;$(DefineConstants)</DefineConstants> <DefineConstants>READYTORUN;$(DefineConstants)</DefineConstants>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<Platforms>x64;x86</Platforms> <Platforms>x64;x86</Platforms>
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates <!-- We're binplacing these into an existing publish layout so that F5 build in VS updates

View file

@ -7,7 +7,6 @@
<TargetFramework>netstandard1.3</TargetFramework> <TargetFramework>netstandard1.3</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<Platforms>x64;x86</Platforms> <Platforms>x64;x86</Platforms>
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates <!-- We're binplacing these into an existing publish layout so that F5 build in VS updates

View file

@ -7,7 +7,6 @@
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">netcoreapp3.0</TargetFramework> <TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">netcoreapp3.0</TargetFramework>
<NoWarn>8002,NU1701</NoWarn> <NoWarn>8002,NU1701</NoWarn>
<Platforms>x64;x86</Platforms> <Platforms>x64;x86</Platforms>
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendTargetFrameworkToOutputPath Condition="'$(BuildingInsideVisualStudio)' == 'true'">true</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath Condition="'$(BuildingInsideVisualStudio)' == 'true'">true</AppendTargetFrameworkToOutputPath>
<OutputPath>$(BinDir)/crossgen2</OutputPath> <OutputPath>$(BinDir)/crossgen2</OutputPath>

View file

@ -34,12 +34,12 @@
<PropertyGroup> <PropertyGroup>
<HostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</HostArch> <HostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</HostArch>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(HostArch)' == 'arm'">arm</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm'">arm</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(HostArch)' == 'arm64'">arm64</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm64'">arm64</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'iOS'">x64</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'iOS'">x64</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'Android'">x64</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'Android'">x64</TargetArchitecture>
<ArchGroup Condition="'$(ArchGroup)' == ''">x64</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
<!-- RuntimeOS is calculated based on the build system OS, however if building for WebAssembly/iOS/Android we need to let <!-- RuntimeOS is calculated based on the build system OS, however if building for WebAssembly/iOS/Android we need to let
the build system to use webassembly/ios/android as the RuntimeOS for produced package RIDs. --> the build system to use webassembly/ios/android as the RuntimeOS for produced package RIDs. -->
@ -49,7 +49,7 @@
<!-- Initialize BuildSettings from the individual properties if it wasn't already explicitly set --> <!-- Initialize BuildSettings from the individual properties if it wasn't already explicitly set -->
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration> <Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
<BuildSettings Condition="'$(BuildSettings)' == ''">$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)</BuildSettings> <BuildSettings Condition="'$(BuildSettings)' == ''">$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)</BuildSettings>
</PropertyGroup> </PropertyGroup>
<Choose> <Choose>
@ -143,7 +143,7 @@
<!-- Common repo directories --> <!-- Common repo directories -->
<PropertyGroup> <PropertyGroup>
<!-- Need to try and keep the same logic as the native builds as we need this for packaging --> <!-- Need to try and keep the same logic as the native builds as we need this for packaging -->
<NativeBinDir>$([MSBuild]::NormalizePath('$(ArtifactsBinDir)', 'native', '$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)'))</NativeBinDir> <NativeBinDir>$([MSBuild]::NormalizePath('$(ArtifactsBinDir)', 'native', '$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)'))</NativeBinDir>
<PkgDir>$([MSBuild]::NormalizeDirectory('$(LibrariesProjectRoot)', 'pkg'))</PkgDir> <PkgDir>$([MSBuild]::NormalizeDirectory('$(LibrariesProjectRoot)', 'pkg'))</PkgDir>
</PropertyGroup> </PropertyGroup>
@ -180,7 +180,7 @@
<ToolRuntimeRID Condition="'$(BuildingInsideVisualStudio)' == 'true'">$(_runtimeOS)-x64</ToolRuntimeRID> <ToolRuntimeRID Condition="'$(BuildingInsideVisualStudio)' == 'true'">$(_runtimeOS)-x64</ToolRuntimeRID>
<ToolRuntimeRID Condition="'$(ToolRuntimeID)' == ''">$(_runtimeOS)-$(HostArch)</ToolRuntimeRID> <ToolRuntimeRID Condition="'$(ToolRuntimeID)' == ''">$(_runtimeOS)-$(HostArch)</ToolRuntimeRID>
<!-- We build linux-musl-arm on a ubuntu container, so we can't use the toolset build for alpine runtime. We need to use portable linux RID for our toolset in order to be able to use it. --> <!-- We build linux-musl-arm on a ubuntu container, so we can't use the toolset build for alpine runtime. We need to use portable linux RID for our toolset in order to be able to use it. -->
<ToolRuntimeRID Condition="'$(_runtimeOS)' == 'linux-musl' and $(ArchGroup.StartsWith('arm')) and !$(HostArch.StartsWith('arm'))">linux-x64</ToolRuntimeRID> <ToolRuntimeRID Condition="'$(_runtimeOS)' == 'linux-musl' and $(TargetArchitecture.StartsWith('arm')) and !$(HostArch.StartsWith('arm'))">linux-x64</ToolRuntimeRID>
<!-- There are no WebAssembly tools, so use the default ones --> <!-- There are no WebAssembly tools, so use the default ones -->
<_buildingInOSX>$([MSBuild]::IsOSPlatform('OSX'))</_buildingInOSX> <_buildingInOSX>$([MSBuild]::IsOSPlatform('OSX'))</_buildingInOSX>
@ -203,10 +203,9 @@
<_portableOS Condition="'$(TargetOS)' == 'Unix' and '$(_runtimeOSFamily)' != 'osx' and '$(_runtimeOSFamily)' != 'FreeBSD' and '$(_runtimeOS)' != 'linux-musl'">linux</_portableOS> <_portableOS Condition="'$(TargetOS)' == 'Unix' and '$(_runtimeOSFamily)' != 'osx' and '$(_runtimeOSFamily)' != 'FreeBSD' and '$(_runtimeOS)' != 'linux-musl'">linux</_portableOS>
<_packageRID /> <_packageRID />
<_packageRID Condition="'$(PortableBuild)' == 'true'">$(_portableOS)-$(ArchGroup)</_packageRID> <_packageRID Condition="'$(PortableBuild)' == 'true'">$(_portableOS)-$(TargetArchitecture)</_packageRID>
<PackageRID Condition="'$(PackageRID)' == ''">$(_packageRID)</PackageRID> <PackageRID Condition="'$(PackageRID)' == ''">$(_packageRID)</PackageRID>
<PackageRID Condition="'$(PackageRID)' == ''">$(RuntimeOS)-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PackageRID)' == ''">$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
<TargetArchitecture>$(ArchGroup)</TargetArchitecture>
</PropertyGroup> </PropertyGroup>
<!-- Set some shortcuts for more terse conditions in project files --> <!-- Set some shortcuts for more terse conditions in project files -->

View file

@ -66,7 +66,7 @@
<BinPlaceTargetFrameworks Condition="'$(IsNETCoreApp)' == 'true' and '$(BuildingNETCoreAppVertical)' == 'true'" Include="$(NetCoreAppCurrent)-$(TargetOS)"> <BinPlaceTargetFrameworks Condition="'$(IsNETCoreApp)' == 'true' and '$(BuildingNETCoreAppVertical)' == 'true'" Include="$(NetCoreAppCurrent)-$(TargetOS)">
<PackageFileRefPath Condition="'$(IsNETCoreAppRef)' == 'true'">$(NETCoreAppPackageRefPath)</PackageFileRefPath> <PackageFileRefPath Condition="'$(IsNETCoreAppRef)' == 'true'">$(NETCoreAppPackageRefPath)</PackageFileRefPath>
<PackageFileRuntimePath>$(NETCoreAppPackageRuntimePath)</PackageFileRuntimePath> <PackageFileRuntimePath>$(NETCoreAppPackageRuntimePath)</PackageFileRuntimePath>
<RuntimePath Condition="'$(BinPlaceNETCoreAppPackage)' == 'true'">$(NETCoreAppPackageRuntimePath)\..\runtime\$(TargetOS)-$(Configuration)-$(ArchGroup)</RuntimePath> <RuntimePath Condition="'$(BinPlaceNETCoreAppPackage)' == 'true'">$(NETCoreAppPackageRuntimePath)\..\runtime\$(TargetOS)-$(Configuration)-$(TargetArchitecture)</RuntimePath>
<RefPath Condition="'$(BinPlaceNETCoreAppPackage)' == 'true' and '$(IsNETCoreAppRef)' == 'true'">$(RefRootPath)microsoft.netcore.app\$(Configuration)</RefPath> <RefPath Condition="'$(BinPlaceNETCoreAppPackage)' == 'true' and '$(IsNETCoreAppRef)' == 'true'">$(RefRootPath)microsoft.netcore.app\$(Configuration)</RefPath>
<!-- enable trimming for any runtime project that's part of the shared framework and hasn't already set ILLinkTrimAssembly --> <!-- enable trimming for any runtime project that's part of the shared framework and hasn't already set ILLinkTrimAssembly -->
<SetProperties Condition="'$(BinPlaceRuntime)' == 'true' and '$(ILLinkTrimAssembly)' == ''">ILLinkTrimAssembly=true</SetProperties> <SetProperties Condition="'$(BinPlaceRuntime)' == 'true' and '$(ILLinkTrimAssembly)' == ''">ILLinkTrimAssembly=true</SetProperties>
@ -102,7 +102,7 @@
</BinPlaceTargetFrameworks> </BinPlaceTargetFrameworks>
<!-- for BuildAllConfigurations make sure runtimepaths are created for all vertical target frameworks. --> <!-- for BuildAllConfigurations make sure runtimepaths are created for all vertical target frameworks. -->
<BinPlaceTargetFrameworks Condition="'$(BuildAllConfigurations)' == 'true' and ('$(BinPlaceForTargetVertical)' == 'true' or ('$(TargetFramework)' != '$(NetCoreAppCurrent)' and '$(TargetFrameworkSuffix)' == ''))" Include="$(NetCoreAppCurrent)-$(TargetOS)"> <BinPlaceTargetFrameworks Condition="'$(BuildAllConfigurations)' == 'true' and ('$(BinPlaceForTargetVertical)' == 'true' or ('$(TargetFramework)' != '$(NetCoreAppCurrent)' and '$(TargetFrameworkSuffix)' == ''))" Include="$(NetCoreAppCurrent)-$(TargetOS)">
<RuntimePath>$(ArtifactsBinDir)runtime/%(Identity)-$(Configuration)-$(ArchGroup)</RuntimePath> <RuntimePath>$(ArtifactsBinDir)runtime/%(Identity)-$(Configuration)-$(TargetArchitecture)</RuntimePath>
</BinPlaceTargetFrameworks> </BinPlaceTargetFrameworks>
<BinPlaceTargetFrameworks Include="@(AdditionalBinPlaceTargetFrameworks)" /> <BinPlaceTargetFrameworks Include="@(AdditionalBinPlaceTargetFrameworks)" />

View file

@ -3,7 +3,7 @@
<DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants> <DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants>
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks> <TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
<CoverageSupported>false</CoverageSupported> <CoverageSupported>false</CoverageSupported>
<SkipTestsOnPlatform Condition="'$(ArchGroup)' == 'arm' or '$(ArchGroup)' == 'arm64' or '$(ArchGroup)' == 'armel' or '$(ArchGroup)' == 'wasm'">true</SkipTestsOnPlatform> <SkipTestsOnPlatform Condition="'$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'armel' or '$(TargetArchitecture)' == 'wasm'">true</SkipTestsOnPlatform>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<!-- Reuse the same runtimeconfig used by MSBuild. --> <!-- Reuse the same runtimeconfig used by MSBuild. -->

View file

@ -8,7 +8,7 @@
<!-- Hardcode version paths in a global location. --> <!-- Hardcode version paths in a global location. -->
<NativeVersionFile Condition="'$(TargetOS)' == 'Windows_NT'">$(ArtifactsObjDir)_version.h</NativeVersionFile> <NativeVersionFile Condition="'$(TargetOS)' == 'Windows_NT'">$(ArtifactsObjDir)_version.h</NativeVersionFile>
<NativeVersionFile Condition="'$(TargetOS)' != 'Windows_NT'">$(ArtifactsObjDir)_version.c</NativeVersionFile> <NativeVersionFile Condition="'$(TargetOS)' != 'Windows_NT'">$(ArtifactsObjDir)_version.c</NativeVersionFile>
<_BuildNativeArgs>$(ArchGroup) $(Configuration) outconfig $(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup) -os $(TargetOS)</_BuildNativeArgs> <_BuildNativeArgs>$(TargetArchitecture) $(Configuration) outconfig $(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture) -os $(TargetOS)</_BuildNativeArgs>
</PropertyGroup> </PropertyGroup>
<Target Name="BuildNativeUnix" <Target Name="BuildNativeUnix"

View file

@ -5,9 +5,6 @@
<TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS</TargetFrameworks> <TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS</TargetFrameworks>
<Nullable>annotations</Nullable> <Nullable>annotations</Nullable>
</PropertyGroup> </PropertyGroup>
<Choose>
<!-- Disable the whole workitem on Windows arm64 until https://github.com/dotnet/core-eng/issues/5118 is fixed. -->
<When Condition="'$(ArchGroup)' != 'arm64' or '$(TargetsWindows)' != 'true'">
<ItemGroup> <ItemGroup>
<Compile Include="NotifyReadVirtualNetworkStream.cs" /> <Compile Include="NotifyReadVirtualNetworkStream.cs" />
<Compile Include="DummyTcpServer.cs" /> <Compile Include="DummyTcpServer.cs" />
@ -128,6 +125,4 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="System.Net.TestData" Version="$(SystemNetTestDataVersion)" /> <PackageReference Include="System.Net.TestData" Version="$(SystemNetTestDataVersion)" />
</ItemGroup> </ItemGroup>
</When>
</Choose>
</Project> </Project>

View file

@ -18,8 +18,8 @@
<ItemGroup Condition="'@(OfficialBuildRID)' != ''"> <ItemGroup Condition="'@(OfficialBuildRID)' != ''">
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/> <BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
<BuildRID Include="$(PackageRID)"> <BuildRID Include="$(PackageRID)">
<Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform> <Platform Condition="'$(TargetArchitecture)' == 'x64'">amd64</Platform>
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform> <Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
</BuildRID> </BuildRID>
</ItemGroup> </ItemGroup>

View file

@ -5,7 +5,7 @@
<HelixBuild Condition="'$(HelixBuild)' == ''">default</HelixBuild> <HelixBuild Condition="'$(HelixBuild)' == ''">default</HelixBuild>
<!-- For arm/arm64 we set a 30 min timeout temporarily until we split up slow test assemblies. --> <!-- For arm/arm64 we set a 30 min timeout temporarily until we split up slow test assemblies. -->
<TimeoutInSeconds Condition="'$(ArchGroup)' == 'arm64' or '$(ArchGroup)' == 'arm'">1800</TimeoutInSeconds> <TimeoutInSeconds Condition="'$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'arm'">1800</TimeoutInSeconds>
<TimeoutInSeconds Condition="'$(TimeoutInSeconds)' == ''">900</TimeoutInSeconds> <TimeoutInSeconds Condition="'$(TimeoutInSeconds)' == ''">900</TimeoutInSeconds>
<_timeoutSpan>$([System.TimeSpan]::FromSeconds($(TimeoutInSeconds)))</_timeoutSpan> <_timeoutSpan>$([System.TimeSpan]::FromSeconds($(TimeoutInSeconds)))</_timeoutSpan>
@ -21,7 +21,7 @@
<WorkItemArchiveWildCard Condition="'$(WorkItemArchiveWildCard)' == ''">$(TestArchiveTestsRoot)**/*.zip</WorkItemArchiveWildCard> <WorkItemArchiveWildCard Condition="'$(WorkItemArchiveWildCard)' == ''">$(TestArchiveTestsRoot)**/*.zip</WorkItemArchiveWildCard>
<HelixConfiguration>$(Configuration)</HelixConfiguration> <HelixConfiguration>$(Configuration)</HelixConfiguration>
<HelixArchitecture>$(ArchGroup)</HelixArchitecture> <HelixArchitecture>$(TargetArchitecture)</HelixArchitecture>
<!-- This property is used to show the tests results in Azure Dev Ops. By setting this property the <!-- This property is used to show the tests results in Azure Dev Ops. By setting this property the
test run name will be displayed as $(BuildSettings)-$(HelixTargetQueue) --> test run name will be displayed as $(BuildSettings)-$(HelixTargetQueue) -->

View file

@ -14,7 +14,7 @@
<BaseIntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(OutDirName)'))</BaseIntermediateOutputPath> <BaseIntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(OutDirName)'))</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)</IntermediateOutputPath> <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)</IntermediateOutputPath>
<!-- Use runtime assemblies for the TargetFramework, using TargetOS --> <!-- Use runtime assemblies for the TargetFramework, using TargetOS -->
<RefPath>$(ArtifactsBinDir)runtime/$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)/</RefPath> <RefPath>$(ArtifactsBinDir)runtime/$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)/</RefPath>
<CoreCLRTargetOS>$(TargetOS)</CoreCLRTargetOS> <CoreCLRTargetOS>$(TargetOS)</CoreCLRTargetOS>
<MonoTargetOS>$(TargetOS)</MonoTargetOS> <MonoTargetOS>$(TargetOS)</MonoTargetOS>
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks> <TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>

View file

@ -6,9 +6,9 @@
<!-- Set default Platform --> <!-- Set default Platform -->
<PropertyGroup> <PropertyGroup>
<ArchGroup Condition="'$(ArchGroup)' == ''">x64</ArchGroup> <TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
<Platform>$(ArchGroup)</Platform> <Platform>$(TargetArchitecture)</Platform>
<TargetArchitecture>$(ArchGroup)</TargetArchitecture> <TargetArchitecture>$(TargetArchitecture)</TargetArchitecture>
<PlatformConfigPathPart>$(TargetOS).$(Platform).$(Configuration)</PlatformConfigPathPart> <PlatformConfigPathPart>$(TargetOS).$(Platform).$(Configuration)</PlatformConfigPathPart>
</PropertyGroup> </PropertyGroup>

View file

@ -74,47 +74,47 @@
<When Condition="'$(_runtimeOSFamily)' == 'win'"> <When Condition="'$(_runtimeOSFamily)' == 'win'">
<PropertyGroup> <PropertyGroup>
<!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) --> <!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) -->
<PackageRID>win-$(ArchGroup)</PackageRID> <PackageRID>win-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'osx'"> <When Condition="'$(_runtimeOSFamily)' == 'osx'">
<PropertyGroup> <PropertyGroup>
<PackageRID>osx.10.12-$(ArchGroup)</PackageRID> <PackageRID>osx.10.12-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'ios'"> <When Condition="'$(_runtimeOSFamily)' == 'ios'">
<PropertyGroup> <PropertyGroup>
<PackageRID>ios.$(iOSVersionMin.TrimEnd('.0'))-$(ArchGroup)</PackageRID> <PackageRID>ios.$(iOSVersionMin.TrimEnd('.0'))-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'freebsd'"> <When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
<PropertyGroup> <PropertyGroup>
<PackageRID>freebsd.11-$(ArchGroup)</PackageRID> <PackageRID>freebsd.11-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'android'"> <When Condition="'$(_runtimeOSFamily)' == 'android'">
<PropertyGroup> <PropertyGroup>
<PackageRID>android.21-$(ArchGroup)</PackageRID> <PackageRID>android.21-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == '1'">android-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<When Condition="'$(_runtimeOSFamily)' == 'rhel'"> <When Condition="'$(_runtimeOSFamily)' == 'rhel'">
<PropertyGroup> <PropertyGroup>
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID> <PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</When> </When>
<Otherwise> <Otherwise>
<PropertyGroup> <PropertyGroup>
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID> <PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
<!-- Set the platform part of the RID if we are doing a portable build --> <!-- Set the platform part of the RID if we are doing a portable build -->
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID> <PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(TargetArchitecture)</PackageRID>
</PropertyGroup> </PropertyGroup>
</Otherwise> </Otherwise>
</Choose> </Choose>
@ -186,8 +186,8 @@
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/> <BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
<BuildRID Include="$(PackageRID)" <BuildRID Include="$(PackageRID)"
Condition="'$(_isSupportedOSGroup)' == 'true'"> Condition="'$(_isSupportedOSGroup)' == 'true'">
<Platform Condition="'$(ArchGroup)' == 'x64'">x64</Platform> <Platform Condition="'$(TargetArchitecture)' == 'x64'">x64</Platform>
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform> <Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
</BuildRID> </BuildRID>
</ItemGroup> </ItemGroup>