views:

28

answers:

1

I want to treat resharper 5.0 error "Possible NullReference Exception" as MSVS 2010 compile error. Is it possible?

+1  A: 

You can edit the type of warning that will be issued by R# under ReSharper/Options/Code Inspection/Inspection Severity.

However, this will not necessary mean that the compiler throws errors - R# isn't responsible for actually compiling the code when you hit "Build" in your project.

Tomas Lycken
Yes, I've already done that and found the same thing. But I thought maybe there's a kinda hack to somehow tune the compiler.
type_mismatch
@type: I doubt it - in that case, msbuild.exe probably would already emmit warnings about that.
Tomas Lycken