无法安装 Xero.NetStandard.OAuth2

Can't install the Xero.NetStandard.OAuth2

我无法从 VS2017 或 VS2019 安装 Xero.NetStandard.OAuth2 Nuget 包。错误是:

Could not install package 'Xero.NetStandard.OAuth2 3.16.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

虽然我的网络应用程序是 .NET Framework 4.6 版。

Xero NetStandard SDK 以 .NET Standard 2.0 为目标,仅与 .NET Framework > 4.6.1 兼容。 您可以在此处查看 .NET Standard 2.0 的所有兼容框架:

.NET implementation support