dotnet / roslyn-analyzers

MIT License
1.6k stars 468 forks source link

Support BannedAPIAnalyzers in XAML Code #6105

Open MeikTranel opened 2 years ago

MeikTranel commented 2 years ago

Analyzer

Diagnostic ID: RS0030

Describe the improvement

Usage by XAML/WPF should be tracked just like it is in Razor/CSHTML.

Additional context

Use-Case for us would be to prohibit usage of controls when our own should be preceeding.

MeikTranel commented 2 years ago

I'd implement this myself - if someone could give me a hint what seems to be in the way.