-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update ProcessFrameworkReferences and ResolveAppHosts to not look for runtime-specific assets for the any
RID
#50421
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
Changes from all commits
44d7b47
11bd3c8
e47fa6c
a1176c4
eabd558
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,6 +335,7 @@ out List<KnownRuntimePack> knownRuntimePacksForTargetFramework | |
var runtimeRequiredByDeployment | ||
= (SelfContained || ReadyToRunEnabled) && | ||
!string.IsNullOrEmpty(RuntimeIdentifier) && | ||
RuntimeIdentifier != "any" && | ||
selectedRuntimePack != null && | ||
!string.IsNullOrEmpty(selectedRuntimePack.Value.RuntimePackNamePatterns); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. GenerateBundle is only called for single-file publishing, and I believe that the combination of |
||
|
||
|
@@ -372,6 +373,13 @@ var runtimeRequiredByDeployment | |
continue; | ||
} | ||
|
||
if (runtimeIdentifier == "any") | ||
{ | ||
// The `any` RID represents a platform-agnostic target. As such, it has no | ||
// platform-specific runtime pack associated with it. | ||
continue; | ||
} | ||
|
||
// Pass in null for the runtimePacks list, as for these runtime identifiers we only want to | ||
// download the runtime packs, but not use the assets from them | ||
ProcessRuntimeIdentifier(runtimeIdentifier, runtimePackForRuntimeIDProcessing, runtimePackVersion, additionalFrameworkReferencesForRuntimePack: null, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In DependencyContextBuilder, I wonder if we could skip the check for nativeRuntimeTargetsFiles if the RID is Any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't quite understand what you meant here, but I did see a related change that we needed to make around a check on
_isPortable
that I've updated too.