You need to disable your own ReSharper code analysis if you want to save VS error detection settings.
To do this, go to ReSharper> Options> Code Verification> Settings and uncheck the Enable Code Analysis box.
If ReSharper code analysis is enabled, it disables the VS native C # error with each initialization. This VS functionality is considered redundant in the light of ReKharper 1k + expressions.
source
share