-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure shared framework consumes source-built RID graph #53550
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Note that the fix here will likely require changes in installer and libraries. It's likely going to be me fixing this if I can find the time to get to it. Would love help identifying what to change in installer and how to test this sort of thing (EG: hypothetical new linux or new arch). cc @ViktorHofer @crummel |
@NikolaMilosavljevic this seems important enough to keep in 6.0. |
@ericstj as this issue still targets 6.0, do you have someone to work on it? |
I'll leave it to the owners of the area to make the call and fix it if they deem it necessary. I don't see it as must fix for 6.0 unless there's a source build scenario that requires it. |
@NikolaMilosavljevic should we keep this in 6.0 or move it out? |
This is needed to make .NET 6.0 and .NET 7.0 source-build on new versions of a distro. Currently maintainers need to patch the runtime graph before the build works. If this is fixed on
I have a long open issue for this: dotnet/source-build#297. We need to identify when we're using the build host rid and when we're using the target rid. The bootstrap SDK won't know about the unknown distro, so we may need to force it to be compatible. That's already possible by setting The target RID should be treated as the name of the thing we're building. Source-build is already passing this name as |
@ericstj I'm source-building .NET 7 with #74504 on an unknown distro (I changed my The build passes. The
That is tracked by this issue, right? If we fix it, we should have all the bits we need to make .NET 7 source-build work on unknown distros. |
It should be. You do see that runtime listed in the If so I believe all that's needed to fix this is to plumb the generated runtime.json into the shared framework build. |
Yes, it's in the package |
Related to #50818
I believe the shared framework build process is still consuming the statically defined, checked-in, runtime.json.
We need to make sure it uses the generated one.
I suggest we do this by making the shared framework always consume it from an output location (along with the assemblies, etc). Then make the
Microsoft.NETCore.Platforms
project responsible for putting it there, whether it builds it or not.Also we should consider scenarios like #52907 where folks want to add RIDs without necessarily doing a source build.
Perhaps there is a way to use the RID generation process in more conditions while still ensuring the checked-in copy is up-to-date?
The text was updated successfully, but these errors were encountered: