Why does VS 2022 add using statements to my code

Lloyd Sheen 1,476 Reputation points
2023-11-10T20:44:18.74+00:00

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,888 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
{count} votes