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

Don't require analyzers to be in evaluation data #5830

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

drewnoakes
Copy link
Member

Fixes #5418.

The dependency node receives both evaluation (unresolved) data and design-time build (resolved) data. Both sources provide data about the same items and must be correlated and combined.

A while ago the dependency node changed to disallow adding items to the tree that appear only in design-time build results. This broke the Analyzers node as analyzers are not available during evaluation (see #4782).

This change allows specific rules to opt out of the restriction, doing so only for analyzer items.

@drewnoakes drewnoakes added the Feature-Dependency-Node "Dependencies" node in Solution Explorer that display project, binary & package references label Jan 24, 2020
@drewnoakes drewnoakes added this to the 16.5 milestone Jan 24, 2020
@drewnoakes drewnoakes requested a review from a team as a code owner January 24, 2020 11:25
@drewnoakes drewnoakes added this to In progress in Sprint 165 via automation Jan 24, 2020
@davkean
Copy link
Member

davkean commented Jan 25, 2020

Analyzers can come from evaluation, via the <Analyzer> item - how does this treat them?

@drewnoakes
Copy link
Member Author

Analyzers that come from Analyzer project items in evaluation will still work just fine.

@drewnoakes drewnoakes merged commit 11ba98e into dotnet:master Jan 27, 2020
Sprint 165 automation moved this from In progress to Done Jan 27, 2020
@drewnoakes drewnoakes deleted the fix-analyzers-node branch January 27, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Dependency-Node "Dependencies" node in Solution Explorer that display project, binary & package references
Projects
No open projects
Sprint 165
  
Done
Development

Successfully merging this pull request may close these issues.

Analyzer dependencies showing as unresolved full paths
3 participants