Error when trying to add Nuget packages

Hello, how to solve this problem with encoding, cause I can't add any of nuget packages.

Attempting to gather dependency information for package 'Microsoft.AspNet.Mvc.5.2.3' with respect to project 'Pirmas', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'Microsoft.AspNet.Mvc.5.2.3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.AspNet.Mvc.5.2.3'
Resolved actions to install package 'Microsoft.AspNet.Mvc.5.2.3'
GET https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.3
OK https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.3 719ms
Acquiring lock for the installation of Microsoft.AspNet.Razor 3.2.3
Acquired lock for the installation of Microsoft.AspNet.Razor 3.2.3
Installing Microsoft.AspNet.Razor 3.2.3.
Error downloading 'Microsoft.AspNet.Razor.3.2.3' from 'https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.3'.
The type initializer for 'SharpCompress.Common.ArchiveEncoding' threw an exception.
No data is available for encoding 775.
Install failed. Rolling back...
Package 'Microsoft.AspNet.Razor.3.2.3' does not exist in project 'Pirmas'
Package 'Microsoft.AspNet.Razor.3.2.3' does not exist in folder '/Users/Lukas/Desktop/TOP/Pirmas/packages> > > > > > > ****'
Error downloading 'Microsoft.AspNet.Razor.3.2.3' from 'https://www.nuget.org/api/v2/package/Microsoft.AspNet.Razor/3.2.3

Tagged:

Answers

  • mattwardmattward GBMember Xamurai
    edited September 2016

    Possibly Mono's zip implementation does not like that encoding.

    There is a similar error, not related to NuGet, reported on the forum where switching the machine's region from Estonia to UK resolved the problem.

    I tried switching my machine's region to Estonia but Xamarin Studio seemed to work installing NuGet packages.

Sign In or Register to comment.