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

Downgrade to .NET 4.0 #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Mvc.Mailer/Mvc.Mailer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Mvc.Mailer</RootNamespace>
<AssemblyName>Mvc.Mailer</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down Expand Up @@ -88,8 +88,8 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>IF NOT EXIST "$(ProjectDir)NuGet\input\lib\45" md "$(ProjectDir)NuGet\input\lib\45"
copy *.dll "$(ProjectDir)NuGet\input\lib\45"
<PostBuildEvent>IF NOT EXIST "$(ProjectDir)NuGet\input\lib\40" md "$(ProjectDir)NuGet\input\lib\40"
copy *.dll "$(ProjectDir)NuGet\input\lib\40"
xcopy content "$(ProjectDir)NuGet\input\content" /S /Y
cd "$(ProjectDir)NuGet"
IF NOT EXIST output md output
Expand Down
4 changes: 2 additions & 2 deletions Mvc.Mailer/MvcMailMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public virtual void Send(ISmtpClient smtpClient = null)
/// </summary>
/// <param name="userState">The userState</param>
/// <param name="smtpClient">leave null to use default System.Net.Mail.SmtpClient</param>
public virtual async Task SendAsync(object userState = null, ISmtpClient smtpClient = null)
public virtual Task SendAsync(object userState = null, ISmtpClient smtpClient = null)
{
await Task.Run(() =>
return Task.Factory.StartNew(() =>
{
smtpClient = smtpClient ?? GetSmtpClient();
smtpClient.SendAsync(this, userState);
Expand Down