You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the new tokenizer, we require that preprocessor directives are at the start of the line (modulo whitespace). The razor compiler will emit a couple of diagnostics for scenarios where it sees violations, or potential violations, of this rule, and it would be good to have IDE fixers to help users clean this up. These diagnostics are:
Error RZ1043: C# preprocessor directives must be at the start of the line, except for whitespace.
This error is given when we know for certain that a preprocessor directive is misplaced.
Warning RZ1044: Possible C# preprocessor directive is misplaced. C# preprocessor directives must be at the start of the line, except for whitespace.
This warning is given when there's a disabled preprocessor section and a possible #else, #elif, or #endif was found in that disabled text.
As part of the new tokenizer, we require that preprocessor directives are at the start of the line (modulo whitespace). The razor compiler will emit a couple of diagnostics for scenarios where it sees violations, or potential violations, of this rule, and it would be good to have IDE fixers to help users clean this up. These diagnostics are:
#else
,#elif
, or#endif
was found in that disabled text./cc @ryzngard
The text was updated successfully, but these errors were encountered: