Skip to content

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