【问题标题】:SendGrid not working in c# applicationSendGrid 在 C# 应用程序中不起作用
【发布时间】:2018-07-12 09:46:18
【问题描述】:

我创建了应用程序,它位于 Visual Studio 2013 update 4 中,.Net 框架为 4.5。现在,想实现 SendGrid 来发送邮件。但它给了我如下错误:

The 'System.Net.Http 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.12.0.817'.

当我尝试升级 Nuget 时,它没有显示任何更新(见图)。不知道该怎么办

【问题讨论】:

标签: c# nuget sendgrid


【解决方案1】:

NuGet 2.x 客户端与 VS 2013 兼容 NuGet 3.x 客户端与 VS 2015 兼容。 NuGet 4.x 客户端与 VS 2017 兼容。

tl;博士 使用 VS 2013 时无法安装该软件包。

参考https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManagerforVisualStudio2013

https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManagerforVisualStudio2015

https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-02
    • 1970-01-01
    • 2016-12-27
    • 1970-01-01
    • 2014-12-25
    • 2013-11-27
    相关资源
    最近更新 更多