Skip to content

ProcessFrameworkReferences if ILLink pack is required #33062

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

Closed

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Jun 6, 2023

We shouldn't skip ProcessFrameworkReferences if trimming is enabled, for example. Previously, NETSDK1195 was reported for netstandard2.1 but not netstandard2.0, because the latter didn't use FrameworkReference. This fixes the inconsistency.

@ghost ghost added Area-ILLink untriaged Request triage from a team member labels Jun 6, 2023
- Don't publish single-file test for unsupported net472 TFM
- Expect single-file to fail adding ILLink pack reference for unupported TFMs
- Adjust TFM to check single-file error behavior when publishing library
@sbomer sbomer closed this Jun 7, 2023
@sbomer sbomer reopened this Jun 7, 2023
@sbomer
Copy link
Member Author

sbomer commented Jul 13, 2023

This change is needed for netstandard2.0 and netstandard2.1 to behave consistently when IsTrimmable is set (currently an error, but it would also be needed if we defined an ILLink pack for use with these TFMs). Relevant to the warning behavior we've been discussing @agocke @vitek-karas. PTAL

An earlier version of this change was designed to let ProcessFrameworkReferences run when any tool packs were required, but I've limited the scope of the change to the ILLink pack to avoid unnecessary breaking changes.

@sbomer sbomer requested a review from agocke July 13, 2023 19:20
@sbomer sbomer changed the title ProcessFrameworkReferences if tool packs are required ProcessFrameworkReferences if ILLink pack is required Jul 13, 2023
@sbomer
Copy link
Member Author

sbomer commented Jul 24, 2023

These changes have been integrated into #34077.

@sbomer sbomer closed this Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-ILLink untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant