How can I debug what targets a given NuGet package? - xamarin.ios

I'm trying to install Twilio Voice for Xamarin, and when I try to add it to my app, I get this error:
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.
Question
How can I manually download, inspect this NuGet package so I can see its intended use?

To download a Nuget Package, just go to this url: https://www.nuget.org/api/v2/package/Twilio.Voice.Xamarin/2.0.0-beta4-1
Once you download it, you can use something like 7zip to extract it and see its contents.
Looking inside it, it is designed for Xamarin.iOS and Android and I successfully installed it in my Xamarin.iOS app.

Related

How to import and use a modified npm library packages dynamically

I am using a sigmajs library for creating node based graph visualisations. But the library package had a few bugs, so I modified a few files in the source code of the library and fixed them.
I have hosted my graphs on django server, and whenever I host it, the sigma package in the package.json gets loaded dynamically each time. The static library files on my machine which I had modified and fixed bugs don't get loaded. So,I get the same old package and not the modified one.
How do I access the modified library package dynamically when I host the server.
My advice is that of copying your fixed version of the library on server and install it from local path instead of remote npm repository like this:
npm install --save /path/to/fixed/lib/dir/in/server.
See this answer: npm local install
Pay attention that your fixed lib won't be sync with official one.
I don't know how you modify the library but i suggest to fork the official repository and syncronize your local one with remote one as for example explaind here sync forked repo github.
In this way you can sync to official repo while you mantain your fix and you will install your modified local one. Eventually consider to open issues and PR on sigmajs official repo to apply your fix directly to official library. If they will be accepted you can then install directly official version.

npm-install: Why is there a difference between a "<name>" and a "git-repo-url" package installation for the code?

Goal:
I want to install a special commit of a package.
Problem: After installing a package using a GitHub-Url, the code in the node_module folder was significantly different from a normal installation. (This caused webpack to generate error messages, which was not the case with a normal installation.)
Question: Is there any way that the code from GitHub is created and perform in the same way (e.g., structure and layout) as after a normal installation?
Test scenario:
Normal installation:
npm install jquery
GitHub installation:
npm install git+https://git#github.com/jquery/jquery.git
results:
+.github
+src
...
package.json
detailed results with github
+dist
+external
+src
...
package.json
detailed results without github

NuGet Packager not allowing a prerelease dependency in VSTS

When NuGet creates my package I get an error for including a prerelease package and it gives me the following result:
C:\LR\Mms\Services\Mms\TaskAgentProvisioner\Tools\agents\2.109.1\externals\nuget\NuGet.exe pack "C:\a\1\s\Harvest.Auth\Harvest.Auth.csproj" -OutputDirectory "C:\a\1\s" -Properties Configuration=release -version 1.0.1
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
Attempting to build package from 'Harvest.Auth.csproj'.
Packing files from 'C:\a\1\s\Harvest.Auth\bin\Release'.
Found packages.config. Using packages listed as dependencies
A stable release of a package should not have on a prerelease dependency. Either modify the version spec of dependency "Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory (≥ 4.0.209160138-alpha)" or update the version field.
System.Exception: Unexpected exit code 1 returned from tool NuGet.exe
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeToolCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
PowerShell script completed with 1 errors.
I know that I need to mark my NuGet package as prerelease, however you can see in the first line it does not pickup my tag and version correctly which is 1.0.1-alpha, it only picks up 1.0.1.
I've also tried adding [assembly: AssemblyInformationalVersion("1.0.1-alpha")] per the NuGet documentation located here, however this didn't work either.
I was hoping there would be a command line to force it to create anyway, since we use it internally, and don't really care if it's pre-release or not. Here's the pack commands.
I should also note that we are using the NuGet packager that is part of VSTS.

Azure build - [error]Unable to find version '' of package

Im trying to get a solution with Syncfusion to work.
But every time I try to deploy to Azure i get the following errors
##[error]Unable to find version '13.3.0.12' of package 'Syncfusion.AspNet.Mvc5'.
##[error]Unable to find version '13.3.0.12' of package 'Syncfusion.JavaScript'.
##[error]Unable to find version '13.3.0.12' of package 'Syncfusion.Web.Base45'.
##[error]Unable to find version '13.3.0.12' of package 'Syncfusion.Web.FileFormatsBase45'.
##[error]Unexpected exit code 1 returned from tool NuGet.exe
I tried creating a NuGet.config with the link to the syncfusion but dont work.
If i check the Packages folder i can see all the packages it says it cant find
Hope somone can help
Apparently you are using private NuGet feed, as these packages are not listed on the official NuGet feed, thus the error message.
Here is confirmation that these packages are not listed on the public NuGet feed:
http://www.nuget.org/packages?q=Syncfusion.AspNet.Mvc5
http://www.nuget.org/packages?q=Syncfusion.JavaScript
http://www.nuget.org/packages?q=Syncfusion.Web.Base45
http://www.nuget.org/packages?q=Syncfusion.Web.FileFormatsBase45
Which is also confirmed by the Syncfusion docs, which describe a custom feed for their packages: http://help.syncfusion.com/extension/syncfusion-nuget-packages/nuget-install-and-configuration
To enable restore of Syncfusion packages, check this SO question and its accepted answer on how can you include custom NuGet feeds to your Azure Web app deployment.

Fsharp binding for monodevelop via add-in manager can't resolve dependencies

I need to run F# with monodeveloper on Arch Linux. (Please don't advice me to NOT use it, i have to use it as it is required by a university course). I tried to add Language Binding for F# as it is described in this link(downloaded zip file, extract it and tried to add from add-in manager):
https://code.google.com/p/wildart/wiki/FSharpBinding
It gives me the following errors:
The selected add-ins can not be installed because there are dependency conflicts.
The package 'Components v2.2' could not be found in any repository
The package 'Core v2.2' could not be found in any repository
The package 'Core.Gui v2.2' could not be found in any repository
The package 'Ide v2.2' could not be found in any repository
The package 'Projects v2.2' could not be found in any repository
The package 'Projects.Gui v2.2' could not be found in any repository
How can i solve this problem? I search on the internet and couldn't find a solution yet.
Second way, i tried to build and install from scratch as described in github:
https://github.com/fsharp/fsharpbinding/tree/master/monodevelop
I've downloaded fsharpbinding.zip, installed nuget(i don't know what else i should download, as it says "required nuget packages"), unzip the file, and call ./configure.sh under his folder. It fails because it can't find fsc in given paths:
which: no fsc in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
It successfully finds all other directories that it looks for. F# is already installed but i don't know how to find fsc to pass its path to configure.sh. What should i do?
just ran into this, and it seems to be this issue. fixed it by uninstalling monodevelop and installing monodevelop-latest from aur

Resources