Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Referencing nuget libs in PCL - Xamarin Studio‏

$
0
0

What is the standard procedure of referencing nuget libraries (ex: ModernHttpClient) in a Portable Library project? On Xamarin Studio on mac. (All the examples/docs out there mostly talk about Visual Studio, which I don't use).

I used the nuget add-in to pull down the nuget package and add reference to this library, but keep getting errors like the below. I tried changing the PCL profiles to several others but none of them seem to help.

Could not install package 'modernhttpclient 1.1.0'. You are trying to install this package into a project that targets 'portable-net45+wp80+MonoAndroid10+MonoTouch10', 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. System.InvalidOperationException: Could not install package 'modernhttpclient 1.1.0'. You are trying to install this package into a project that targets 'portable-net45+wp80+MonoAndroid10+MonoTouch10', 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. at NuGet.ProjectManager.ExtractPackageFilesToProject (IPackage package) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReferenceToProject (IPackage package) [0x00000] in :0 at NuGet.ProjectManager.Execute (NuGet.PackageOperation operation) [0x00000] in :0 at NuGet.ProjectManager.Execute (IPackage package, IPackageOperationResolver resolver) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at NuGet.ProjectManager.AddPackageReference (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in :0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0 at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage package, ICSharpCode.PackageManagement.InstallPackageAction installAction) [0x00000] in :0 at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore () [0x00000] in :0 at ICSharpCode.PackageManagement.ProcessPackageAction.Execute () [0x00000] in :0 at ICSharpCode.PackageManagement.PackageActionRunner.Run (IPackageAction action) [0x00000] in :0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations) [0x00000] in :0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage () [0x00000] in :0

at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage () [0x00000] in :0

Thanks, Vin


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>