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:
parent
bfee6381cb
commit
19c7f5a704
23 changed files with 192 additions and 202 deletions
|
@ -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)
|
||||
- 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`
|
||||
- NetFx targeting pack - Copy to `bin\ref\net472`
|
||||
- Build targeting pack
|
||||
|
@ -31,7 +31,7 @@ The following are the properties associated with each build pivot
|
|||
- `$(BuildTargetFramework) -> netstandard2.1 | netcoreapp5.0 | net472`
|
||||
- `$(TargetOS) -> Windows | Linux | OSX | FreeBSD | [defaults to running OS 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.
|
||||
|
||||
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>
|
||||
```
|
||||
|
||||
- `$(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.
|
||||
- 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
|
||||
|
||||
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`.
|
||||
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)`
|
||||
|
||||
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
|
||||
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))
|
||||
|
|
|
@ -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`)
|
||||
- `-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`)
|
||||
- `-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).
|
||||
|
||||
|
@ -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.
|
||||
|
||||
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
|
||||
`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
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ Example building for armel
|
|||
src/Native/build-native.sh 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
|
||||
```
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ $failedBuilds = @()
|
|||
foreach ($config in $configuration) {
|
||||
$argumentsWithConfig = $arguments + " -configuration $((Get-Culture).TextInfo.ToTitleCase($config))";
|
||||
foreach ($singleArch in $arch) {
|
||||
$argumentsWithArch = "/p:ArchGroup=$singleArch /p:TargetArchitecture=$singleArch " + $argumentsWithConfig
|
||||
$argumentsWithArch = "/p:TargetArchitecture=$singleArch " + $argumentsWithConfig
|
||||
$env:__DistroRid="win-$singleArch"
|
||||
Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $argumentsWithArch"
|
||||
if ($lastExitCode -ne 0) {
|
||||
|
|
|
@ -112,7 +112,7 @@ while [[ $# > 0 ]]; do
|
|||
;;
|
||||
-arch)
|
||||
arch=$2
|
||||
arguments="$arguments /p:ArchGroup=$2 /p:TargetArchitecture=$2"
|
||||
arguments="$arguments /p:TargetArchitecture=$2"
|
||||
shift 2
|
||||
;;
|
||||
-configuration|-c)
|
||||
|
|
|
@ -17,7 +17,7 @@ steps:
|
|||
$(Build.SourcesDirectory)/src/libraries/sendtohelix.proj
|
||||
/t:test
|
||||
/p:RuntimeFlavor=${{ parameters.runtimeFlavor }}
|
||||
/p:ArchGroup=${{ parameters.archGroup }}
|
||||
/p:TargetArchitecture=${{ parameters.archGroup }}
|
||||
/p:Configuration=${{ parameters.configuration }}
|
||||
/p:TargetOS=${{ parameters.targetOS }}
|
||||
/p:TestScope=${{ parameters.testScope }}
|
||||
|
|
|
@ -76,7 +76,7 @@ jobs:
|
|||
$(_runtimeArtifactsPathArg)
|
||||
$(_runtimeOSArg)
|
||||
/p:RuntimeFlavor=${{ parameters.runtimeFlavor }}
|
||||
/p:ArchGroup=${{ parameters.archType }}
|
||||
/p:TargetArchitecture=${{ parameters.archType }}
|
||||
/p:Configuration=${{ parameters.buildConfig }}
|
||||
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/overrideCoreclrFromLiveDrop.binlog
|
||||
displayName: Override $(runtimeFlavorName) from live drop
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<RunArguments>$(RunArguments) --logger "trx;LogFileName=$(TrxTestResultsName)"</RunArguments>
|
||||
<RunArguments>$(RunArguments) --logger "html;LogFileName=$(HtmlTestResultsName)"</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="'$(TestBlame)' == 'true'">$(RunArguments) --blame</RunArguments>
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
<OSRid Condition="'$(OSRid)' == '' and '$(_distroRidIndex)' != '-1'">$(_parseDistroRid.SubString(0, $(_distroRidIndex)))</OSRid>
|
||||
<OSRid Condition="'$(OSRid)' == ''">win10</OSRid>
|
||||
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(Platform)' != ''">$(Platform)</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == ''">$(BuildArch)</ArchGroup>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(Platform)' != ''">$(Platform)</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$(BuildArch)</TargetArchitecture>
|
||||
|
||||
<RuntimeOS Condition="'$(RuntimeOS)' == ''">$(OSRid)</RuntimeOS>
|
||||
|
||||
|
@ -80,54 +80,54 @@
|
|||
<When Condition="'$(_runtimeOSFamily)' == 'win'">
|
||||
<PropertyGroup>
|
||||
<!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) -->
|
||||
<PackageRID>win-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>win-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'osx'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'android'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'rhel'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
|
||||
<!-- 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>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'alpine'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
|
||||
<!-- 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>
|
||||
</When>
|
||||
<When Condition="'$(RuntimeOS)' == 'linux-musl'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
|
||||
<!-- 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>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
@ -178,8 +178,8 @@
|
|||
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
|
||||
<BuildRID Include="$(PackageRID)"
|
||||
Condition="'$(_isSupportedOSGroup)' == 'true'">
|
||||
<Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform>
|
||||
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' == 'x64'">amd64</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
|
||||
</BuildRID>
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<Platforms>x64;x86</Platforms>
|
||||
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
|
||||
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
<DefineConstants>READYTORUN;$(DefineConstants)</DefineConstants>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<Platforms>x64;x86</Platforms>
|
||||
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
|
||||
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<Platforms>x64;x86</Platforms>
|
||||
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
|
||||
<!-- We're binplacing these into an existing publish layout so that F5 build in VS updates
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">netcoreapp3.0</TargetFramework>
|
||||
<NoWarn>8002,NU1701</NoWarn>
|
||||
<Platforms>x64;x86</Platforms>
|
||||
<PlatformTargets Condition="'$(ArchGroup)' != ''">$(ArchGroup)</PlatformTargets>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<AppendTargetFrameworkToOutputPath Condition="'$(BuildingInsideVisualStudio)' == 'true'">true</AppendTargetFrameworkToOutputPath>
|
||||
<OutputPath>$(BinDir)/crossgen2</OutputPath>
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<HostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</HostArch>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(HostArch)' == 'arm'">arm</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(HostArch)' == 'arm64'">arm64</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'iOS'">x64</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(TargetOS)' == 'Android'">x64</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == ''">x64</ArchGroup>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm'">arm</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm64'">arm64</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'iOS'">x64</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'Android'">x64</TargetArchitecture>
|
||||
<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
|
||||
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 -->
|
||||
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
|
||||
<BuildSettings Condition="'$(BuildSettings)' == ''">$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(ArchGroup)</BuildSettings>
|
||||
<BuildSettings Condition="'$(BuildSettings)' == ''">$(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture)</BuildSettings>
|
||||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
|
@ -143,7 +143,7 @@
|
|||
<!-- Common repo directories -->
|
||||
<PropertyGroup>
|
||||
<!-- 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>
|
||||
</PropertyGroup>
|
||||
|
@ -180,7 +180,7 @@
|
|||
<ToolRuntimeRID Condition="'$(BuildingInsideVisualStudio)' == 'true'">$(_runtimeOS)-x64</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. -->
|
||||
<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 -->
|
||||
<_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>
|
||||
|
||||
<_packageRID />
|
||||
<_packageRID Condition="'$(PortableBuild)' == 'true'">$(_portableOS)-$(ArchGroup)</_packageRID>
|
||||
<_packageRID Condition="'$(PortableBuild)' == 'true'">$(_portableOS)-$(TargetArchitecture)</_packageRID>
|
||||
<PackageRID Condition="'$(PackageRID)' == ''">$(_packageRID)</PackageRID>
|
||||
<PackageRID Condition="'$(PackageRID)' == ''">$(RuntimeOS)-$(ArchGroup)</PackageRID>
|
||||
<TargetArchitecture>$(ArchGroup)</TargetArchitecture>
|
||||
<PackageRID Condition="'$(PackageRID)' == ''">$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Set some shortcuts for more terse conditions in project files -->
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
<BinPlaceTargetFrameworks Condition="'$(IsNETCoreApp)' == 'true' and '$(BuildingNETCoreAppVertical)' == 'true'" Include="$(NetCoreAppCurrent)-$(TargetOS)">
|
||||
<PackageFileRefPath Condition="'$(IsNETCoreAppRef)' == 'true'">$(NETCoreAppPackageRefPath)</PackageFileRefPath>
|
||||
<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>
|
||||
<!-- 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>
|
||||
|
@ -102,7 +102,7 @@
|
|||
</BinPlaceTargetFrameworks>
|
||||
<!-- 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)">
|
||||
<RuntimePath>$(ArtifactsBinDir)runtime/%(Identity)-$(Configuration)-$(ArchGroup)</RuntimePath>
|
||||
<RuntimePath>$(ArtifactsBinDir)runtime/%(Identity)-$(Configuration)-$(TargetArchitecture)</RuntimePath>
|
||||
</BinPlaceTargetFrameworks>
|
||||
|
||||
<BinPlaceTargetFrameworks Include="@(AdditionalBinPlaceTargetFrameworks)" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
|
||||
<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>
|
||||
<!-- Reuse the same runtimeconfig used by MSBuild. -->
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<!-- Hardcode version paths in a global location. -->
|
||||
<NativeVersionFile Condition="'$(TargetOS)' == 'Windows_NT'">$(ArtifactsObjDir)_version.h</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>
|
||||
|
||||
<Target Name="BuildNativeUnix"
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
<TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS</TargetFrameworks>
|
||||
<Nullable>annotations</Nullable>
|
||||
</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>
|
||||
<Compile Include="NotifyReadVirtualNetworkStream.cs" />
|
||||
<Compile Include="DummyTcpServer.cs" />
|
||||
|
@ -128,6 +125,4 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="System.Net.TestData" Version="$(SystemNetTestDataVersion)" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
</Project>
|
|
@ -18,8 +18,8 @@
|
|||
<ItemGroup Condition="'@(OfficialBuildRID)' != ''">
|
||||
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
|
||||
<BuildRID Include="$(PackageRID)">
|
||||
<Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform>
|
||||
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' == 'x64'">amd64</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
|
||||
</BuildRID>
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<HelixBuild Condition="'$(HelixBuild)' == ''">default</HelixBuild>
|
||||
|
||||
<!-- 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>
|
||||
<_timeoutSpan>$([System.TimeSpan]::FromSeconds($(TimeoutInSeconds)))</_timeoutSpan>
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
|||
<WorkItemArchiveWildCard Condition="'$(WorkItemArchiveWildCard)' == ''">$(TestArchiveTestsRoot)**/*.zip</WorkItemArchiveWildCard>
|
||||
|
||||
<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
|
||||
test run name will be displayed as $(BuildSettings)-$(HelixTargetQueue) -->
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<BaseIntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(OutDirName)'))</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)</IntermediateOutputPath>
|
||||
<!-- 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>
|
||||
<MonoTargetOS>$(TargetOS)</MonoTargetOS>
|
||||
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
<!-- Set default Platform -->
|
||||
<PropertyGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == ''">x64</ArchGroup>
|
||||
<Platform>$(ArchGroup)</Platform>
|
||||
<TargetArchitecture>$(ArchGroup)</TargetArchitecture>
|
||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
|
||||
<Platform>$(TargetArchitecture)</Platform>
|
||||
<TargetArchitecture>$(TargetArchitecture)</TargetArchitecture>
|
||||
|
||||
<PlatformConfigPathPart>$(TargetOS).$(Platform).$(Configuration)</PlatformConfigPathPart>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -74,47 +74,47 @@
|
|||
<When Condition="'$(_runtimeOSFamily)' == 'win'">
|
||||
<PropertyGroup>
|
||||
<!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) -->
|
||||
<PackageRID>win-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>win-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'osx'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'ios'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>ios.$(iOSVersionMin.TrimEnd('.0'))-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>ios.$(iOSVersionMin.TrimEnd('.0'))-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'android'">
|
||||
<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 -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(ArchGroup)</PackageRID>
|
||||
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(TargetArchitecture)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'rhel'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(OSRid)-$(TargetArchitecture)</PackageRID>
|
||||
<!-- 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>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
|
||||
<PackageRID>$(RuntimeOS)-$(TargetArchitecture)</PackageRID>
|
||||
<!-- 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>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
@ -186,8 +186,8 @@
|
|||
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
|
||||
<BuildRID Include="$(PackageRID)"
|
||||
Condition="'$(_isSupportedOSGroup)' == 'true'">
|
||||
<Platform Condition="'$(ArchGroup)' == 'x64'">x64</Platform>
|
||||
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' == 'x64'">x64</Platform>
|
||||
<Platform Condition="'$(TargetArchitecture)' != 'x64'">$(TargetArchitecture)</Platform>
|
||||
</BuildRID>
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue