0

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.

jAC
  • 5,195
  • 6
  • 40
  • 55
RafiO
  • 113
  • 1
  • 3
  • 9

1 Answers1

3

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

jAC
  • 5,195
  • 6
  • 40
  • 55
  • do you have any experience in Persian DateTime Picker @jAC – RafiO Jul 23 '17 at 09:34
  • No, sorry, don't have the slightest clue about Persian DateTimes. – jAC Jul 23 '17 at 10:13
  • I was able to download the Farsi.Library 2.7.0 source code and compile it against .Net Framework 4.5.2. I'm not at all leveraging the library in my code so I'm not able to comment on any reintroduced bugs. – JoeF Jul 03 '18 at 22:53