You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've defined my own vs-threading.MembersRequiringMainThread.txt file in my project and added a struct type to the file. When calling a member of that struct, no warning is being generated even though it should be violating the check.
Repro steps
public namespace MyProduct
{
public struct MyStruct
{
public static void DoSomething()
{
}
}
}
Bug description
I've defined my own vs-threading.MembersRequiringMainThread.txt file in my project and added a struct type to the file. When calling a member of that struct, no warning is being generated even though it should be violating the check.
Repro steps
vs-threading.MembersRequiringMainThread.txt:
[MyProduct.MyStruct]
Calling code:
Expected behavior
The code that calls the struct's members should cause a VSTHRD010 warning if it hasn't guaranteed that it's executing on main thread.
Actual behavior
No warning occurs.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: