-
I'm building our Fedora .NET 6 packages. I don't do it often (enough). One thing that stands-out for me is that it is doing two runtime builds, one called I assume the packages in |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Who can answer my questions? Does our Why are we doing both a portable and a non-portable rid? Is it to get rid of pre-builts? Or are there other reasons? How does source-build manage the dependencies/order between the different repos? Is it the order in the cc @crummel |
Beta Was this translation helpful? Give feedback.
-
It should be everything built from source (only). We use poisoning to check that unwanted files don't leak through.
IIRC, it is needed for bootstrapping and a few scenarios: #1433. In 5.0 (I think) we used to build non-portable only and that seemed to work. Perhaps we should re-evaluate this? Or provide post-bootstrap guidance for distros?
AFAIK, the build order is in known-good.proj, but the actual product dependencies are tracked in eng/Version.Details.xml in each repository. I have found https://devblogs.microsoft.com/dotnet/a-deep-dive-into-how-net-builds-and-ships/ to be a good overview of the file and its use. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is what I expect. We shouldn't have to build the runtime twice if we're starting from all source-built artifacts (
Several things get built using the pre-built bootstrap sdk (built with bootstrap sdk) and bootstrap runtime (built with bootstrap runtime). Why are we building the runtime twice, but none of the other stuff? |
Beta Was this translation helpful? Give feedback.
-
At one time, ASP.NET had a hard requirement on the portable runtime assets. This was something they intended to fix, I'll dig up the bug. If it's been fixed then yes, I think that's the only blocker to getting rid of always building runtime-portable. Let me do some checking on this. |
Beta Was this translation helpful? Give feedback.
-
I've looked closer at the aspnetcore build, and made a PR that allows to use the non-portable runtime packages: dotnet/aspnetcore#43937. With that change, we no longer need to build source-build needs to set the |
Beta Was this translation helpful? Give feedback.
-
There is more to it than ASP.NET Core. I've created #3027 to track things needed to remove the |
Beta Was this translation helpful? Give feedback.
There is more to it than ASP.NET Core. I've created #3027 to track things needed to remove the
runtime-portable
build.