All fixed. I created a System.cs file and the class overwrote the using statement's reference. I just renamed the System.cs file to something else and it all works okay.
A fix for CS0426 in XAML and generated .g.cs file while building
While working on a project I started debugging and out of no where a bunch of CS0426 errors came out of nowhere in the generated .g.cs files. I checked my references and I see all the assemblies referenced and added to the project already as you can see in the images. I have already tried reinstalling VS2019, restarting my computer, reinstalling/updating dotnet to 4.8 and tried a new project solution file as well.
Looking closer I do not know how it cannot find for example "Window" in "System.Windows" especially that is included in that type. All my 'usings' are in tact as well. I believe this pops up when I created multiple classes in a solution as well.
Any idea on how to fix this? I am using Visual Studio 2019 and DotNet 4.8.