Nuget无法安装包Jint

时间:2016-07-03 03:17:35

标签: c# visual-studio-2012 nuget nuget-package

我试图从Nuget安装Jint但它失败了,无论我选择什么.Net版本(理想情况下我的目标是4.5)

   PM> Install-Package Jint
    Successfully installed 'Jint 2.8'.
    Successfully uninstalled 'Jint 2.8'.
    Install failed. Rolling back...
    Install-Package : Could not install package 'Jint 2.8'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5,Profile=Client', 
    but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
    At line:1 char:16
    + Install-Package <<<<  Jint
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

1 个答案:

答案 0 :(得分:0)

Jint code issues中,它说它们不支持.Net 3.5,因为您尝试安装Jint时似乎已经拥有了。建议从CodePrex创建一个fork而不是使用nuget:

  

请使用CodePlex中的Jint v1,或者创建一个fork并尝试进行转换。