Open buyaa-n opened 2 years ago
I do not recall how we were planning to handle this, I am thinking of few options:
<SupportedPlatform>browser</SupportedPlatform>
property (without having an option for opting in for generated code analysis, only for fixing the blazor issue)Add option for opting in:
Please let me know your thoughts @mavasani @jmarolf @sharwell @jeffhandley @terrajobst
As per offline discussion the suggested solution is same as one in https://github.com/dotnet/roslyn/issues/39758#issuecomment-552641591 the analyzer should opt in for generated code analysis, but have a quick check in the analyzer itself to see if the current file is the expected generated code and return without performing the analysis if it's not a generated Razor file
CA1416 is turned off for generated code, we have been discussing to add an option for opting in for generated code analysis but that haven't been implemented.
This is causing No platform compatibility analyzer warnings in Razor, we need an option to enable it in razor pages (blazor projects)
CC @mavasani @jmarolf @sharwell @jeffhandley @terrajobst