Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings generated through a CustomAnalyzer are being displayed twice in the Error List Window #508

Open
YakupIpek21 opened this issue Feb 24, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@YakupIpek21
Copy link

YakupIpek21 commented Feb 24, 2022

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

  1. Use the project template to create a custom analyzer.

  2. Adjust the auto-generated analyer by changing the TargetType Property to TextBox

  3. Create a wpf project (.Net Core 3.1) in the very same solution

  4. Enable Custom Analysis in Visual Studio

  5. Add a TextBox without any attributes and save the file, a warning should be displayed
    image

  6. Add a space within the opening tag of the TextBox and save the file again, now the warning is displayed twice
    image

  7. 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

@YakupIpek21 YakupIpek21 added the bug Something isn't working label Feb 24, 2022
@YakupIpek21 YakupIpek21 changed the title Warning generated through CustomAnalyzer displayed twice in Error List Window Warnings generated through a CustomAnalyzer are being displayed twice in the Error List Window Feb 24, 2022
@mrlacey mrlacey added this to the 1.0 milestone Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants