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

The package validation reports LA0006 error, although it seems that it shouldn't #5721

Open
iliar-turdushev opened this issue Dec 3, 2024 · 0 comments

Comments

@iliar-turdushev
Copy link
Contributor

When you introduce a new stable API which is available on net6+ and is not on net62 the build pipeline fails with the LA0006 error. For example, we introduced such an API in the following PR #5670, and that caused the build pipeline to fail https://github.com/dotnet/extensions/runs/33204090775. The LA0006 error stated

Published symbol 'override System.Net.Http.HttpResponseMessage Microsoft.Extensions.Http.Resilience.ResilienceHandler.Send(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);' cannot be deleted to maintain compatibility

We discussed the error in this thread #5670 (comment), and agreed that the error, probably, shouldn't be reported in such a case.

We need to investigate whether the error was triggered correctly or not? If not, then we'll need to fix the analyzer.

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

No branches or pull requests

1 participant