In cases where the full text of the format string is static and known at compile time, shouldn't a missing format string parameter be a compile-time error or, at the very least, warning?
ReSharper catches this, but it's just an underlined squiggle. I was under the impression that this would trigger a general compile-time error:
string x = string.Format("soeuotnh {0}");
Is there any way to trigger a warning on this kind of error without having to run my code through FxCop or something? Even C/C++ compilers will trigger an warning/error for such a blatantly clear bug (though they generally won't check type-safety).