-
Notifications
You must be signed in to change notification settings - Fork 413
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
Enable PublicApiAnalyzers #2782
Conversation
AzDO is passing but not the github action, interesting. |
You might try updating the github action from preview 4 to 7 for .NET 9 9.0.100-preview.7.24407.12 |
941bc90
to
bb07f84
Compare
What something like this work - checkout the last 8.0.1 commit, run the tool to generate text files, stash them, and move them over to this branch? How and when are those files generated, especially the for the unshipped API? Does the tool run automatically somehow or manually update the files? |
src/Microsoft.IdentityModel.JsonWebTokens/Microsoft.IdentityModel.JsonWebTokens.csproj
Show resolved
Hide resolved
These are generated by the fixer with the analyzer. But it doesn't work great for per target items. You can generate it, but then have to manually move it. I think it should be okay as it. At the next release, we move everything over to released. |
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.
0c4f8b7
to
38c3f4e
Compare
I ended up going a different route, just start with everything unshipped, on the first release using this, move everything to shipped |
6556c6e
to
6368acd
Compare
@keegan-caruso do you want this in? |
See: https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md Remove apiCompat files. Include internals as there are friend assemblies.
59ef7bc
to
6d613d1
Compare
Enable PublicApiAnalyzers
See: https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
Include internals for assemblies that are marked with InternalsVisibleTo