Attribute does not apply to any entity (deprecated)

I’m trying to compile a JUCE project in visual studio 2017. I’m getting a lot of “attribute does not apply to any entity errors”. They all seems related to uses of the word “deprecated”, as in, from juce_ValueTreePropertyWithDefault.h

using ValueWithDefault [[deprecated ("This class has been renamed … ")]]

I thought this might be related to the C++ language standard I was using, but I’ve tried all of the options available in the IDE (ISO C++ 14, ISO C++ 17, ISO C++ latest) and none of them fix the problem.

What am I doing wrong? Why is VS2017 confused by the “deprecated” keyword?

Are you using the latest version of VS2017?