错误消息(通用应用程序 - Windows):
PM> install-package restsharp
Installing 'RestSharp 105.2.2'.
Successfully installed 'RestSharp 105.2.2'.
Adding 'RestSharp 105.2.2' to UniversalCSharpAppSmartsheet.Windows.
Uninstalling 'RestSharp 105.2.2'.
Successfully uninstalled 'RestSharp 105.2.2'.
Install failed. Rolling back...
install-package : Could not install package 'RestSharp 105.2.2'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5.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 restsharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我正在尝试使用Smartsheet API,并且实际上安装了RestSharp v105的版本....无论如何,只有在我尝试在通用Windows应用程序中进行设置时,才会收到上面的错误消息。我正试图在MS正在推动这个新的通用事物上加快速度。在我测试过的所有nuget软件包中,这是唯一一个我遇到安装问题的软件包。我不是Nuget的专家,所以我很清楚我需要做些什么来安装它。我只是想在我的项目中使用这个很棒的工具。
错误消息(通用应用程序 - Windows Phone):
当我将我的软件包安装程序导向通用应用程序解决方案的Windows phone部分时,我遇到了类似的错误。
PM> install-package restsharp
Installing 'RestSharp 105.2.2'.
Successfully installed 'RestSharp 105.2.2'.
Adding 'RestSharp 105.2.2' to UniversalCSharpAppSmartsheet.WindowsPhone.
Uninstalling 'RestSharp 105.2.2'.
Successfully uninstalled 'RestSharp 105.2.2'.
Install failed. Rolling back...
install-package : Could not install package 'RestSharp 105.2.2'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.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 restsharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
同样的Nuget包在任何其他项目中工作得很好,只要它不是Windows通用应用程序,但我不想让任何其他项目像控制台应用程序,请任何帮助将非常感谢,谢谢。