Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing from Nuget VS2015 #86

Closed
khoacoi opened this issue Jul 27, 2015 · 6 comments
Closed

Error when installing from Nuget VS2015 #86

khoacoi opened this issue Jul 27, 2015 · 6 comments

Comments

@khoacoi
Copy link

khoacoi commented Jul 27, 2015

Hi,
I'm facing with this error when installing from Nuget in VS2015:

Install-Package : Could not find a part of the path 'C:\Users\username.nuget\packages\Xam.Plugins.Settings\1.5.1\content\portable-net45%2Bwp8%2Bwpa81%2Bwin8%2BMonoAndroid10%2BM
onoTouch10\Helpers\Settings.cs.pp'.
At line:1 char:16

  • Install-Package <<<< Xam.Plugins.Settings
    • CategoryInfo : NotSpecified: (:) [Install-Package], Exception
    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Could you please help?

Thanks,

@jamesmontemagno
Copy link
Owner

Fixed in 1.5.2, just published.

@jamesmontemagno
Copy link
Owner

This actually seems to be an issue with VS 2015 NuGet Package manager that it can't find the cs.pp
Work around is to create a folder called Helpers and create a Settings.cs in there. :(

@khoacoi
Copy link
Author

khoacoi commented Jul 28, 2015

I The issue is because of the folder url :portable-net45+wp8+wpa81+win8+MonoAndroid10+M
onoTouch10 has been encoded and changed to the portable-net45%2Bwp8%2Bwpa81%2Bwin8%2BMonoAndroid10%2BM
onoTouch10. It cannot add reference to project sucessfull

@bitdozer
Copy link

I'm seeing a similar issue with Xam.Plugin.Connectivity. Installs into the platform projects okay, but in the Xamarin.Forms PCL project I get this error:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\rmdne.nuget\packages\Xam.Plugin.Connectivity\1.0.2\content\portable-net45%2Bwp8%2Bwpa81%2Bwin8%2BMonoAndroid10%2BMonoTouch10%2BXamarin.iOS10\PluginsHelp\ConnectivityReadme.txt.pp'.

If you url decode that path, the file DOES exist. So it seems to be an erroneous URL encoding taking place. But I'm wondering why it happens specifically for Xamarin.Plugins packages. Other packages install fine into the same PCL (for example, I just installed AutoMapper--but that seems to use dynamic targeting).

@jamesmontemagno
Copy link
Owner

I have created an new issue: NuGet/Home#1087

@jamesmontemagno
Copy link
Owner

Going to close as there is a work around and now fixed in the NuGet library and is out of my control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants