我有以下 XAML。它是有效的(代码编译和运行都很好),但是 VS 给了我错误:“ XLS0505 Type 'FontImageSource' is used as a markup extension but does not derived from MarkupExtension ”
<Image Source="{FontImageSource Color={DynamicResource PrimaryColor}}"/>
我怎样才能抑制它.editorconfig
?试过这个dotnet_diagnostic.XLS0505.severity = none
,但它没有用。