Can't add Linq2Twitter package to Xamarin Studio
When trying to add the Linq2Twitter NuGet package to Xamarin Studio, I get the following error:
Could not find part of the path "(..) / packages / linqtotwitter.3.1.1 / linqtotwitter.3.1.1.nupkg".
The package was previously installed but could not be a link from my code. After doing a little research, I found it might have something to do with the missing PCL support ( http://lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/ )
After installing mono MDK (Mono Development Kit) here http://www.mono-project.com/download/ , I was no longer able to add the package to my project.
Any ideas :-)
source to share
Had the same issue multiple times, only in Xamarin Studio on Mac. The issue was fixed by manually editing the package.config to have a lowercase identifier and not the one provided by NuGet, both in the PCL and the iOS project.
An entry using id would be:
<package id="linqtotwitter" version="(...)" targetFramework="(...)" />
More info in discussion with another answer in this section by @MattWard
source to share
There are case sensitivity issues with NuGet when you are not on Windows. If the package ID and the package file name do not have the same case, you might see some errors. This is not like a Portable Library (PCL) profile problem.
Linqtotwitter has a problem with its bundle id and filename as the bundle id doesn't match the filename case, which looks like the problem you are seeing. I am assuming the file exists, but has a different case:
/packages/linqtotwitter.3.1.1/linqtotwitter.3.1.1.nupkg
You might be able to work around this by changing .nupkg to have the same file as the package ID, which is lowercase.
However, I can add linqtotwitter to my portable class library project using Xamarin Studio on Mac without any error. Are you using Linux? Using MonoDevelop on Linux has more case sensitivity problems than using it on Mac.
source to share