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
The CSHTML minifier has an issue when the model for a Razor template is a List and no other .NET code exists between the model declaration and the first HTML tag. The angle brackets seemingly get mistaken for HTML. The minifier removes all white space and line breaks in between the model declaration and the HTML tag, producing invalid Razor markup that won't compile.
I was able to work around it for now by adding a .NET code block w/ comments after the model declaration (see attached screenshots). Could you please look into a permanent fix for the issue? Thanks!
The text was updated successfully, but these errors were encountered:
The CSHTML minifier has an issue when the model for a Razor template is a List and no other .NET code exists between the model declaration and the first HTML tag. The angle brackets seemingly get mistaken for HTML. The minifier removes all white space and line breaks in between the model declaration and the HTML tag, producing invalid Razor markup that won't compile.
I was able to work around it for now by adding a .NET code block w/ comments after the model declaration (see attached screenshots). Could you please look into a permanent fix for the issue? Thanks!
The text was updated successfully, but these errors were encountered: