My question is based on another one, but I want to do the opposite: tell msbuild to treat the warning as an error instead of suppressing a specific msbuild warning.
It seems that the message associated with this warning that's not a warning:
If this reference is required by your code, you may get compilation errors
, is not quite correct. If the missing reference is a WPF theme, you'll get a run-time error (System.IO.FileNotFoundException) instead.
As an aside, if you specifically look for MSB3245 you'll get:
CSC : warning CS1691: 'MSB3245' is not a valid warning number