Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Set up the Roslyn Public API analyzer which should detect changes that break the API or ABI.
We need per-target public API files due to having some methods that use the Half, DateOnly and TimeOnly types that are only available for targets >= net6.
I've had to disable some warnings about overloaded methods that have optional arguments. We can't change those now that they've been shipped.
Any local changes can be automatically added to the unshipped API txt file with:
(Others might not need the separate restore and
--no-restore
argument but I had to do it that way to work around a bug)Then when we make a release we should manually move anything in the unshipped files over to the shipped files.
There are more details in https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md