-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support labels for runtime packs #11824
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
Conversation
f4d83b6 to
d4f7c6b
Compare
|
/azp run |
|
Pull request contains merge conflicts. |
d4f7c6b to
262fa48
Compare
|
Also related to #11227 |
3158106 to
5f1cab0
Compare
5f1cab0 to
96b6408
Compare
| public string TargetingPackFormat => _item.GetMetadata("TargetingPackFormat"); | ||
|
|
||
| //public string RuntimePackNamePatterns => _item.GetMetadata("RuntimePackNamePatterns"); | ||
|
|
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.
clean up
| public string Name => _item.ItemSpec; | ||
|
|
||
| //// The framework name to write to the runtimeconfig file (and the name of the folder under dotnet/shared) | ||
| //public string RuntimeFrameworkName => _item.GetMetadata(MetadataKeys.RuntimeFrameworkName); |
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.
clean up
|
I need this PR to be in to continue cswinrt work or I will have a really bad merge conflict. I will address my comments with cswinrt PR (or a separate PR). |
|
@wli3 @dsplaisted what's the motivation for filtering out profiles like WindowsForms and WPF? It looks like this caused the bug in the SDK-> installer insertions because WindowsForms has an extra RID in its If we change |
Thanks @wli3! |
@sfoslund The motivation was so that you would only have to define a runtime pack once and it would apply to all possible profiles. I think it also simplified the implementation. I hadn't considered Windows Forms supporting different RIDs than WPF, and I'm not sure exactly what to do to fix it. I would lean towards some kind of special case fix, since I think WPF is supposed to support ARM64 eventually. |
…se/2.1.6xx Merge release/2.1.5xx to release/2.1.6xx
We need this now that we changed the name of the Mono-based runtime packs. See dotnet/sdk#11824 for the design. Fixes dotnet/sdk#11227
This PR will:
KnownRuntimePackitems, separately fromKnownFrameworkReferenceitemsFrameworkReferenceviaRuntimePackLabelsmetadataFrameworkReferenceBuildCommandandRestoreCommandso they can be used with less boilerplate codeThis will allow separate runtime packs to be specified for Mono, and for projects to opt in to using the Mono runtime packs. It could also be used for other options, such as AOT policy. See dotnet/runtime#34193.
A
KnownRuntimePackitem has much of the same information as aKnownFrameworkReference. It can look like this:This would be selected when the
FrameworkReferencehas metadata that specifiesRuntimePackLabels="Mono". This can be done with the following:Note that this isn't the primary method by which end-users should opt into a specific runtime pack, but rather the underlying mechanism we would use to implement user-facing properties such as
UseMonoRuntime.