umbraco / Umbraco.Forms.Issues

Public issue tracker for Umbraco Forms
29 stars 0 forks source link

"9.0.0-beta003" Razor Compilation fails due to <link> missing <link /> #642

Closed mistyn8 closed 3 years ago

mistyn8 commented 3 years ago
Views\Partials\Forms\Emails\Example-Template.cshtml(29,6): error RZ1034: Found a malformed 'link' tag helper. Tag helpers must have a start and end tag or be self closing.
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900" rel="stylesheet">

Needs closing apparently

Came to light when using other than inMemoryAuto and setting

<!-- Set this to true if ModelsBuilder mode is not InMemoryAuto-->
  <PropertyGroup>
    <RazorCompileOnBuild>true</RazorCompileOnBuild>
    <RazorCompileOnPublish>true</RazorCompileOnPublish>  
  </PropertyGroup>

And frustratingly, if you fix it locally, next build ok.. but then the following build restores the immutable files.

AndyButland commented 3 years ago

Thanks - I haven't been able to replicate this but I don't see there's a down-side in self-closing it, so will do so.