Skip to content
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

Allow using latest illink analyzer on netstandard projects #33158

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Jun 9, 2023

Before net8.0, the illink analyzer shipped as a separate package from ILLink.Tasks. #32045 added logic to reference the separate package for tfms less than net8.0.

This change tweaks the logic to be based on the package version resolved from KnownILLinkPack, rather than the tfm. This makes it possible to define KnownILLinkPack to pull in the latest analyzer, as a workaround when targeting unsupported TFMs. The scenario is still considered unsupported, but this at least makes it possible to work around.

A new testcase shows the steps necessary to use the latest illink analyzer on a netstandard2.x project.

@eerhardt this fix would make it possible to use the 8.0 KnownILLinkPack version that you changed to 7.0 in dotnet/aspnetcore#48619, in case you wanted to use the latest analyzer version.

@sbomer sbomer requested review from agocke, eerhardt and vitek-karas June 9, 2023 23:34
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Jun 9, 2023
@sbomer
Copy link
Member Author

sbomer commented Jun 12, 2023

I disabled the netstandard2.0 testcase because it depends on a fix to ProcessFrameworkReferences: #33062. I will re-enable it once the fix is ready to go in.

@sbomer sbomer merged commit d1264e2 into dotnet:main Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants