【问题标题】:How can I debug what targets a given NuGet package?如何调试针对给定 NuGet 包的目标?
【发布时间】:2017-04-20 21:38:44
【问题描述】:

我正在尝试安装 Twilio Voice for Xamarin,当我尝试将其添加到我的应用程序时,我收到此错误:

Attempting to gather dependency information for package 'Twilio.Voice.Xamarin.2.0.0-beta4-1' with respect to project 'voipphone', targeting 'Xamarin.iOS,Version=v1.0'
  GET https://api.nuget.org/v3/registration1-gz/twilio.voice.xamarin/index.json
  OK https://api.nuget.org/v3/registration1-gz/twilio.voice.xamarin/index.json 169ms
Total number of results gathered : 5
Gathering dependency information took 705.89 ms
Summary of time taken to gather dependencies per source :
https://api.nuget.org/v3/index.json -   171.21 ms
Attempting to resolve dependencies for package 'Twilio.Voice.Xamarin.2.0.0-beta4-1' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Twilio.Voice.Xamarin.2.0.0-beta4-1'
Resolved actions to install package 'Twilio.Voice.Xamarin.2.0.0-beta4-1'
Retrieving package 'Twilio.Voice.Xamarin 2.0.0-beta4-1' from 'nuget.org'.
Install failed. Rolling back...
Package 'Twilio.Voice.Xamarin.2.0.0-beta4-1' does not exist in project 'privatephone'
Package 'Twilio.Voice.Xamarin.2.0.0-beta4-1' does not exist in folder '/Users/Joe/Projects/voipapp/packages'
Executing nuget actions took 56.56 ms
Could not install package 'Twilio.Voice.Xamarin 2.0.0-beta4-1'. You are trying to 
  install this package into a project that targets 'Xamarin.iOS,Version=v1.0',
  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.

问题

如何手动下载、检查此 NuGet 包,以便查看其预期用途?

【问题讨论】:

  • 一个问题,你有什么类型的 Xamarin.iOS 项目? VS2015 (with packages.config), VS2015/2017 with project.json 还是新的 VS2017 csproj 格式?

标签: xamarin.ios xamarin.forms twilio twilio-api callkit


【解决方案1】:

要下载 Nuget 包,只需访问以下网址:https://www.nuget.org/api/v2/package/Twilio.Voice.Xamarin/2.0.0-beta4-1

下载后,您可以使用 7zip 之类的软件解压并查看其内容。

从里面看,它是为 Xamarin.iOS 和 Android 设计的,我成功地将它安装在我的 Xamarin.iOS 应用中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-25
    • 2016-11-28
    • 2017-08-03
    • 1970-01-01
    • 1970-01-01
    • 2012-09-26
    相关资源
    最近更新 更多