Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'System' could not be found 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!