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

Address feedback on the "references newer compiler" diagnostic in the analyzer loader #62627

Conversation

RikkiGibson
Copy link
Contributor

@RikkiGibson RikkiGibson commented Jul 13, 2022

Follow-up to #61261
Closes #62583

{
ReferencedCompilerVersion = errorCode is AnalyzerLoadFailureEventArgs.FailureErrorCode.ReferencesNewerCompiler ? new Version(100, 0, 0, 0) : null
};
typeNameOpt: expectsTypeName ? analyzerTypeName : null);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It feels like the goal of this test could be accomplished by introducing some internal helper to CreateAnalyzerLoadFailureDiagnostic which asserts that the FailureErrorCode falls within an expected range, then running the test on that helper instead of CreateAnalyzerLoadFailureDiagnostic itself. I'd prefer to keep the change minimal here for now, though.

@RikkiGibson
Copy link
Contributor Author

@333fred did we expect fabric-bot to leave a comment here?

@RikkiGibson
Copy link
Contributor Author

@Cosifne once we get this merged, we should be good to push thru QB.

@RikkiGibson RikkiGibson merged commit 097b788 into dotnet:release/dev17.3 Jul 14, 2022
@RikkiGibson RikkiGibson deleted the referencedversion-initter-internal branch July 14, 2022 01:01
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.

None yet

3 participants