Skip to content

Conversation

JoeRobich
Copy link
Member

Force the loading of analyzers and generators when loading projects for the MSBuild Workspace. This gives us the opportunity to report failures as workspace diagnostics.

Related to #77980

Force the loading of analyzers and generators when loading projects for the MSBuild Workspace. This gives us the opportunity to report failures as workspace diagnostics.

Related to #77980
Comment on lines +426 to +427
// Force loading of the analyzers so that we can record any load failures now.
foreach (var analyzerReference in analyzerReferences.OfType<AnalyzerFileReference>())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems a bit expensive if you're not going to be actually looking at all the projects (or only looking at source). Isn't there a MEF factory this could export that can hook this up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants