I am trying to use FluentEmail 2.8.0 in an Azure Function. However, I had the following exception.
RazorLight.RazorLightException: Can't load metadata reference from the entry assembly. Make sure PreserveCompilationContext is set to true in *.csproj file
I have added the following into csproj
<PropertyGroup>
<FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
</PropertyGroup>
<PropertyGroup>
<PreserveCompilationReferences>true</PreserveCompilationReferences>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
But I still get the same error.
Anyone has come across this before?
Environment: .NET Core 3.1, Azure Functions v3