FluentEmail icon indicating copy to clipboard operation
FluentEmail copied to clipboard

Layout cannot be located

Open judowalker opened this issue 8 years ago • 0 comments

Given a view that specifies a layout:

@{
    Layout = "_Layout";
}

When I call:

UsingTemplateFromFile($@"{Directory.GetCurrentDirectory()}\EmailTemplates\Verify.cshtml", viewModel);

I get an error that the layout cannot be located. I also tried specifying the file path:

@{
    Layout = $@"{System.IO.Directory.GetCurrentDirectory()}\EmailTemplates\_Layout.cshtml";
}

judowalker avatar Jun 17 '17 00:06 judowalker