Skip to content

RazorRenderer cannot work well with .netfx 4.7.1 #177

Description

@cyciopes

Hi, I was testing FluentEmail with RazorRender and .netfx 4.7.1, but is always reported exception. Am I missing something to get it worked well with .netfx 4.7.1?
My FluentEmail version was 2.7.0.
Btw, I also tried it with .net core 2.2, the RazorRenderer worked well with it.
Thanks in advance.

image

using FluentEmail.Core;
using FluentEmail.Smtp;
using FluentEmail.Razor;
using RazorLight.Razor;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace GeneralTest
{
    public class FluntEmailTest
    {
        public FluntEmailTest()
        {
            Email.DefaultRenderer = new RazorRenderer();
        }

        [Fact]
        public void Test1()
        {
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReplicatedI have been able to replicate the problem

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions