Rapid-XAML-Toolkit
Rapid-XAML-Toolkit copied to clipboard
Warnings generated through a CustomAnalyzer are being displayed twice in the Error List Window
Describe the bug After having defined a CustomAnalyzer and added the project containing the custom analyzer as a reference to wpf-project the warning is displayed twice in the Error List Window when saving the xaml-file.
To Reproduce
-
Use the project template to create a custom analyzer.
-
Adjust the auto-generated analyer by changing the TargetType Property to TextBox
-
Create a wpf project (.Net Core 3.1) in the very same solution
-
Enable Custom Analysis in Visual Studio
-
Add a TextBox without any attributes and save the file, a warning should be displayed
-
Add a space within the opening tag of the TextBox and save the file again, now the warning is displayed twice
-
Deleting the space and saving again does not reduce the number of warnings
Expected behavior Warning should be displayed once in the Error List Window