无法安装Umbraco Headless .Net Client

时间:2018-05-28 16:46:27

标签: .net nuget umbraco

我正在努力修补新的Umbraco Headless,我只是想获得一些数据,我已经用节点管理了这个,现在我希望在asp.net应用程序中这样做。

我一直关注这里的指示:

https://our.umbraco.org/documentation/Umbraco-Cloud/Headless/Headless-Net-Client/website-framework

我正在运行命令:

Install-Package UmbracoCms.Headless.Client -Source https://www.myget.org/F/uaas/api/v3/index.json -Pre

得到错误:

PM> Install-Package UmbracoCms.Headless.Client -Source https://www.myget.org/F/uaas/api/v3/index.json -Pre
Attempting to gather dependency information for package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03' with respect to project 'Umbraco Headless 3', targeting '.NETFramework,Version=v4.6.1'
Attempting to resolve dependencies for package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03' with DependencyBehavior 'Lowest'
Resolving actions to install package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03'
Resolved actions to install package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03'
Install failed. Rolling back...
Package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03' does not exist in project 'Umbraco Headless 3'
Package 'UmbracoCms.Headless.Client.0.9.0-CI-20180405-03' does not exist in folder 'C:\Users\Harriet\documents\visual studio 2015\Projects\Umbraco Headless 3\packages'
Install-Package : Could not install package 'UmbracoCms.Headless.Client 0.9.0-CI-20180405-03'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', 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.
At line:1 char:1
+ Install-Package UmbracoCms.Headless.Client -Source https://www.myget. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

有谁知道我哪里出错了?看起来.net的版本有问题,但我把项目设置为4.6.1 ...提前谢谢。

0 个答案:

没有答案