Why does #warning in VS2013 is producing an error?

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.

enter image description here

Question is why? isn't that's what #error is for?

Jon Skeet
people
quotationmark

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.

people

See more on this question at Stackoverflow