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

Update MS.CA version & remove hacks #30971

Closed
wants to merge 1 commit into from
Closed

Update MS.CA version & remove hacks #30971

wants to merge 1 commit into from

Conversation

DoctorKrolic
Copy link
Contributor

In #30767 I tried to remove 'target-typed new' hack, but the CI failed. From my investigation it turned out that this error comes from MS.CA.Analyzers package. This package is a dependency of MS.CA.CSharp. MS.CA.CSharp v4.5.0 depend on MS.CA.Analyzers v3.3.3, but the fix for the hack was introduced only in v3.3.4. Therefore updating MS.CA.CSharp to v4.6.0 we get desired version of analyzers 3.3.4, so CI here should pass. A few notes:

  • New version of analyzers added RS1036 error, so I was forced to add <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> to analyzers project
  • Since EF Core 8 will target .NET 8 I believe it is safe to update MS.CA.CSharp version, since the minimum version of VS, that supports .NET 8 will probably have bundled MS.CA.CSharp 4.8.0 anyway

@roji
Copy link
Member

roji commented May 25, 2023

@DoctorKrolic I think it's better to wait with this kind of change until we actually target net8.0...

@DoctorKrolic DoctorKrolic deleted the update-code-analysis branch May 25, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants