the type or namespace name 'system' could not be found. are you missing 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!