mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
Try to untangle the rid calculation. (#82832)
* Try to untangle the rid calculation. * Ignore __portableOS. * Add back musl detection. * Try fix AnyOS tests. * Try fix coreclr linux_musl_arm64 job. * src/tests/build.proj: use PackageRID for restore. * Use RuntimeOS as an override for _packageOS. * Remove (probably) out-dated override for non-portable ToolsRID. * CI cross-builds for linux-musl use linux. * Add missing arch to rid. * Try simplified ToolsRID. * Update comments. * Rename OutputRid to OutputRID. * Tweak comment. * Move TargetsLinux{Bionic,Musl} with the other Targets properties. * Don't use RuntimeOS for PackageRID for CrossBuilds. * Move RuntimeOS condition to ToolsRID assignment. * Clean up a few things. * Fix broken Condition. * Try fix the linux-bionic build. * Try fix the linux-bionic build, part II. * Try fix the linux-bionic build, part III. * Fix PackageRID. * Use RuntimeOS as _packageOS override. * Remove RuntimeOS. * Fix '-os linux-musl' mapping. * Clean up . * Rename __PortableOS to __PortableTargetOS. * Extend comments. * Extend OutputRID comment too. * build.sh: include linux-bionic, linux-musl in usage. * SourceBuild.props: no need to pass RuntimeOS. Only set ToolsOS, PackageOS when RuntimeOS is not empty. * Fix comment. * linux-bionic doesn't get built on linux-bionic. * Unconditionally assign TargetsLinuxBionic/TargetsLinuxMusl. * Remove SkipInferTargetOSName.
This commit is contained in:
parent
ab2b80d06d
commit
21fb96b6ee
41 changed files with 184 additions and 284 deletions
|
@ -29,7 +29,6 @@ The following are the properties associated with each build pivot
|
|||
- `$(TargetOS) -> windows | linux | osx | freebsd | ... | [defaults to running OS when empty]`
|
||||
- `$(Configuration) -> Debug | Release | [defaults to Debug 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/main/src/libraries/Microsoft.NETCore.Platforms) for more info.
|
||||
|
||||
## Aggregate build properties
|
||||
Each project will define a set of supported TargetFrameworks
|
||||
|
@ -63,8 +62,6 @@ A full or individual project build is centered around BuildTargetFramework, Targ
|
|||
2. If nothing is passed to the build then we will default value of these properties from the environment. Example: `net8.0-[TargetOS Running On]-Debug-x64`.
|
||||
3. When building an individual project (either from the CLI or an IDE), all target frameworks are built.
|
||||
|
||||
We also have `RuntimeOS` which can be passed to customize the specific OS and version needed for native package builds as well as package restoration. If not passed it will default based on the OS you are running on.
|
||||
|
||||
Any of the mentioned properties can be set via `/p:<Property>=<Value>` at the command line. When building using any of the wrapper scripts around it (i.e. build.cmd) a number of these properties have aliases which make them easier to pass (run build.cmd/sh -? for the aliases).
|
||||
|
||||
## Selecting the correct BuildSettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue