[UIThreadTestMethod]
should have Analyzer to ensure parent class inherits from VisualUITestBase
#42
Labels
[UIThreadTestMethod]
should have Analyzer to ensure parent class inherits from VisualUITestBase
#42
Describe the bug
The Source Generator tries to call
EnqueueAsync
on the class, but this is a method fromVisualUITestBase
, so if you try and use the generator attribute without inheriting from the class, you can an error about it not finding the method.We should have an analyzer here to help guide folks to knowing that they have to inherit from the class. That and/or we should figure out a way to capture the dispatcher at the right point in test initialization so that we can just use it for the generated methods without needing a special base class?
Steps to reproduce
Expected behavior
Help in guiding to the right path.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: