Farsi.Library 2.7.0 安装失败
Farsi.Library 2.7.0 Fails to install
我尝试通过 NuGet 包管理器控制台安装 Farsi.Library 2.7.0。
但出现以下错误:
Install-Package : Could not install package 'Farsi.Library 2.7.0'. You
are trying to install this package into a project that targets
'.NETFramework,Version=v4.5.2', 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.
根据他的 blog entry,此库的所有版本(包括 2.6 版)都基于 .NET Framework 4.6 - 这修复了波斯日历的一些错误。这就是您安装失败的原因。
安装版本 2.5.1.5,这是基于 .NET Framework 2.0 的库的最新版本,以绕过此问题。
或者将您的项目升级到 .NET Framework 4.6 或更高版本。
Install-Package Farsi.Library -Version 2.5.1.5
我尝试通过 NuGet 包管理器控制台安装 Farsi.Library 2.7.0。
但出现以下错误:
Install-Package : Could not install package 'Farsi.Library 2.7.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', 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.
根据他的 blog entry,此库的所有版本(包括 2.6 版)都基于 .NET Framework 4.6 - 这修复了波斯日历的一些错误。这就是您安装失败的原因。
安装版本 2.5.1.5,这是基于 .NET Framework 2.0 的库的最新版本,以绕过此问题。 或者将您的项目升级到 .NET Framework 4.6 或更高版本。
Install-Package Farsi.Library -Version 2.5.1.5