I am using Visual Studio 2013, with Resharper 8.2.
I must be missing something here. I have added #warning
to the code and it failed the build.
Question is why? isn't that's what #error
is for?
I suspect you have set the "treat warnings as errors" flag in your project build properties.
You can either remove that flag, or set it to only treat specific warnings as errors.
See more on this question at Stackoverflow