-
I find var results = BannedApiAnalyzer.Analyze(files, bannedSymbolsTxt); My question is twofold:
Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Sep 2, 2024
Replies: 1 comment 6 replies
-
You cannot do this, it is not a supported use case. What you could do is use Roslyn itself to create a compilation for those files, add the banned api analyzer to that compilation, and then get all diagnostics. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
MartyIX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You cannot do this, it is not a supported use case. What you could do is use Roslyn itself to create a compilation for those files, add the banned api analyzer to that compilation, and then get all diagnostics.