Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference? code example
Example: the type or namespace name 'system' could not be found visual studio 2019
Clean your solution
Do a rebuild
Close visual studio
and re-open
That's it!