Skip to content

Bug while compiling #regions on SDK 8.0.400. #10737

@mauriciocirelli

Description

@mauriciocirelli

Dear,

Today we tried to build a aspnet 8.0 project, which used to build just fine, and noticed that it pulled a new container version, moving sdk from 8.0.303 to 8.0.400, and we started to get some strange errors like this:

error CS0019: Operator '>' cannot be applied to operands of type 'string' and 'IHtmlContent'

The strange part is that the line that is pointed by the error message does not contain such a comparison.
We could see this same error in several other cshtml files and the common thing is that the line pointed by the error message is one line after an #endregion instruction.

Removing the #region / #endregion pairs fixed the build issue.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-compilerUmbrella for all compiler issuesbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions