mrlacey / Rapid-XAML-Toolkit

A collection of tools to accelerate XAML development within Visual Studio. These include XAML analysis, XAML generations, plus templates and helpers.
https://marketplace.visualstudio.com/items?itemName=MattLaceyLtd.RapidXamlToolkit
Other
666 stars 43 forks source link

AnyOf does not work as expected #506

Closed YakupIpek21 closed 2 years ago

YakupIpek21 commented 2 years ago

Describe the bug Targeting multiple types as depicted in the picture does not work as expected. image

Warnings are generated for more types, as shown in the following picture: image

To Reproduce

  1. Create a custom analyzer with the ANYOF prefix
  2. Add the project containing the custom analyzer as a reference to a project which contains the xaml files
  3. Add Grid, StackPanel, TextBlock, TextBox tags
  4. Save the file in order to trigger the analysis

Expected behavior Only types declared in the TargetType property with the ANYOF prefix should be analyzed

Additional context Have installed the latest RapidXaml.Analysis extension (version 0.13.2)

mrlacey commented 2 years ago

What are the warnings reported in the Error List? It looks like the other warnings being reported are the ones that are built into the tool and are automatically applied to all documents.

YakupIpek21 commented 2 years ago

I've tried to reproduce the above mentioned behaviour, but have failed to do so. It works as expected.

mrlacey commented 2 years ago

Feel free to reopen if you find this happening again.