Why does VS 2022 add using statements to my code

Lloyd Sheen 1,391 Reputation points

Every so often (at least it has happened enough that I know what to do) when I go to debug a solution it will add using statement(s) to my code. They will always cause a compile error which on the surface makes not sense. The most recent one was for MetalPerformanceShadersGraph (any one out there know what that is???).

This is just another of the multitude of problems with VS and Maui. Is there anyone at MS that gives a ......??? Since this happens to me at least a couple of times a day I would think that if MS is doing QA they must have come across this and someone there should know why and how they are adding to my code!!!!!!!!!!

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,753 questions
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
{count} votes