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?
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
#endregioninstruction.Removing the
#region/#endregionpairs fixed the build issue.Am I missing something?