我是C#和Neo4j的新手,想要遵循这个基本指南:https://github.com/Readify/Neo4jClient/wiki/GettingStartedWithCSharp
我的问题是当我在软件包管理器中运行" Install-Package Neo4jClient时出现错误:
Attempting to gather dependency information for package 'Neo4jClient.3.0.0' with respect to project 'Connecter', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'Neo4jClient.3.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Neo4jClient.3.0.0'
Resolved actions to install package 'Neo4jClient.3.0.0'
Install failed. Rolling back...
Package 'Neo4jClient.3.0.0' does not exist in project 'Connecter'
Package 'Neo4jClient.3.0.0' does not exist in folder 'C:\Users\Jakob\Documents\Visual Studio 2015\Projects\Connecter\packages'
Install-Package : Could not install package 'Neo4jClient 3.0.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 pac
kage author.
At line:1 char:1
+ Install-Package Neo4jClient
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManag
ement.PowerShellCmdlets.InstallPackageCommand
任何人都知道如何解决这个问题?
谢谢
答案 0 :(得分:1)
似乎您的项目的目标是.NETFramework,Version = v4.5.2,NuGet上的Neo4jClient至少需要v4.6(基于NuGet依赖关系)才能工作。尝试更新项目中的框架(参见此处)。
答案已从评论中删除,因此可以接受