Can't Access UnityEngine.InputSystem.UI

Seen another post on the issue I’m having but no solution was made on this. Plus that thread is 2 years old so I figured I might as well make a new thread.

As you can see this file is grayed out

If I remove #if PACKAGE_DOCS_GENERATION || UNITY_INPUT_SYSTEM_ENABLE_UI this file is no longer grayed out.

I have tried removing and redownloading the input system package, download different versions of VS Code Editor and VS Editor then Regenerate Package files. None of this has worked, I have even tested this in barebones projects and it works their but not within my main project.

It’s a large project I really hope I don’t to delete my library folder to even see if this would fix the issue.

All else fails I guess I’ll have to just move the input system to my assets folder and remove this problematic line.

I feel dumb now just set your VS to Debug and it will work…, a mod can mark this solved or just delete this thread your decision.