Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for NET Core 2.0 support where System.Net.Mail exists #393

Closed
paultechguy opened this issue Apr 23, 2018 · 8 comments
Closed

Request for NET Core 2.0 support where System.Net.Mail exists #393

paultechguy opened this issue Apr 23, 2018 · 8 comments
Labels
enhancement New feature or request

Comments

@paultechguy
Copy link

Unable to use MimeMessage.CreateFromMailMessage in .NET Core 2.0 library.

See this post in Stack Overflow.

Would be nice to use MimeKit in NET Core 2.0.

jstedfast added a commit that referenced this issue Apr 23, 2018
@jstedfast jstedfast added the enhancement New feature or request label Apr 23, 2018
@jstedfast
Copy link
Owner

Thanks! Should be fixed now.

@paultechguy
Copy link
Author

Thanks. I pulled the latest down and just did a build on the MimeKit.NetStandard project, but still have errors. I literally just opened this single project (not the full solution) and did a build with errors. Maybe I am doing something wrong.

@jstedfast
Copy link
Owner

What are the errors?

@paultechguy
Copy link
Author

I downloaded mimekit from github as a zip and unzipped it, then opened up MimeKit.NetStandard in VS 2017 (latest version). When I select build, I get the errors in the image attached.
mimekiterrors

@jstedfast
Copy link
Owner

You might need to run dotnet restore

@paultechguy
Copy link
Author

Jason, I was able to finally fix this by adding the RunTimeIdentifiers line to the MimeKit.NetStandard project file:

<ProjectGroup>
...
    <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>

@jstedfast
Copy link
Owner

MimeKit 2.0.4 has just been released with this fix.

@paultechguy
Copy link
Author

Installed via Nuget and thing built and worked nicely. Great job.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants