As far as I know, this is not possible.
What you can do is turn off the highlighting of semantic errors in real time to get semantic errors that are only reported during compilation. You can also completely get rid of error highlighting.
Both options are under Tools > Options > Text editors > C# > Advanced .
source share