-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Re-enable CoreLib analyzers #424
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
Conversation
CoreLib analyzers were unintentionally disabled with 6afe96c. This re-enables the analyzers and conditions one which brings in external dependencies that CoreLib can't deal with.
|
I'll remove that package as its description clearly state that it shouldn't be referenced directly. @safern do you have context why that package was referenced directly in corefx/arcade? |
Microsoft.CodeAnalysis.Common shouldn't be referenced directly, therefore removing that package from the common location and only restoring and marking it as an analyzer in the libraries restore phase.
|
OK, so the transitive dependency to Microsoft.CodeAnalysis.Common is required becaues of the special way we add analyzers to projects in libraries. We will clean this up with @Anipik's work to enable project restore for non test projects in libraries. |
|
This should be ready, can someone pls approve? Thanks |
|
Thanks, merging as the previous run was green (except an unrelated test failure) and I just changed a comment which re-triggered CI. |
safern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Re-enable CoreLib analyzers CoreLib analyzers were unintentionally disabled with 6afe96c. This re-enables the analyzers. * Remove Microsoft.CodeAnalysis.Common from common Microsoft.CodeAnalysis.Common shouldn't be referenced directly, therefore removing that package from the common location and only restoring and marking it as an analyzer in the libraries restore phase.
CoreLib analyzers were unintentionally disabled with
6afe96c. This re-enables the analyzers
and conditions one which brings in external dependencies that CoreLib
can't deal with.
Fixes #422