0
votes

I tried to install Farsi.Library 2.7.0 through the NuGet Package Manager Console.

But following error occurs:

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.

1

1 Answers

3
votes

According to his blog entry all versions of this library beyond and including version 2.6 are based on .NET Framework 4.6 - somehow this fixes a few bugs with the persian calendar. This is why the installation fails for you.

Install version 2.5.1.5, the latest version of this library which is based on .NET Framework 2.0, to bypass this. Or upgrade your project to .NET Framework 4.6 or later.

Install-Package Farsi.Library -Version 2.5.1.5