Repository navigation
Use RID-layout for OS configurations in libraries #32451
Copy link
Copy link
Closed
Labels
area-Infrastructure-librarieshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
We should switch to the well defined RID system away from our current defined OS configurations. This allows us to share the OS configuration matrix with installer and have just one central point where this is defined.
See
runtime/src/installer/Directory.Build.props
Lines 227 to 308 in 9704493
| <Choose> | |
| <When Condition="$(OutputRid.StartsWith('win'))"> | |
| <PropertyGroup> | |
| <TargetsWindows>true</TargetsWindows> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('osx'))"> | |
| <PropertyGroup> | |
| <TargetsOSX>true</TargetsOSX> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('debian'))"> | |
| <PropertyGroup> | |
| <TargetsDebian>true</TargetsDebian> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('ubuntu'))"> | |
| <PropertyGroup> | |
| <TargetsUbuntu>true</TargetsUbuntu> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('linuxmint'))"> | |
| <PropertyGroup> | |
| <TargetsLinuxMint>true</TargetsLinuxMint> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('rhel'))"> | |
| <PropertyGroup> | |
| <TargetsRhel>true</TargetsRhel> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('centos'))"> | |
| <PropertyGroup> | |
| <TargetsCentos>true</TargetsCentos> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('opensuse'))"> | |
| <PropertyGroup> | |
| <TargetsOpensuse>true</TargetsOpensuse> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('fedora'))"> | |
| <PropertyGroup> | |
| <TargetsFedora>true</TargetsFedora> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('oracle'))"> | |
| <PropertyGroup> | |
| <TargetsOracle>true</TargetsOracle> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <When Condition="$(OutputRid.StartsWith('sles'))"> | |
| <PropertyGroup> | |
| <TargetsSles>true</TargetsSles> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </When> | |
| <Otherwise> | |
| <PropertyGroup> | |
| <TargetsLinux>true</TargetsLinux> | |
| <TargetsUnix>true</TargetsUnix> | |
| </PropertyGroup> | |
| </Otherwise> | |
| </Choose> |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-Infrastructure-librarieshelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Activity
ericstj commentedon Feb 18, 2020
Yep, @Anipik and I talked about this and agreed this would be good, to avoid the custom runtime.json. We didn't do it in initial pass because it would churn all the projects. Now is a good time to do it.
Anipik commentedon May 27, 2020
Things that need to get done here. Taken from @jkotas comment #33315 (comment)
ViktorHofer commentedon Jun 9, 2020
@Anipik sounds like we can make incremental progress. Do you want to work on this and if yes, can you break down the necessary changes into individual tasks with a rough estimation? Would like to better understand the size of this task.
Anipik commentedon Jun 30, 2020
The Benefits vs cost scenario is not that great for this issue, so we put it on hold. But u can summarize the steps in detail
Lowercase TargetOS (#80164)