Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Can't install System.Security.Cryptography to portable project?

EliasSimonEliasSimon USMember ✭✭
edited November 2016 in Cross Platform with Xamarin

I need to add simple cryptography to my Xamarin.Forms app, but it looks like System.Security.Cryptography isn't installed in the project. So, I tried to install System.Security.Cryptography.Algorithms to all the projects in the solution (using NuGet) and I get this error:

Could not install package 'System.Security.Cryptography.Algorithms 4.2.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework.

However, this only seems to apply to the Portable project. The package installs successfully for the platform-specific projects, MyApp.Droid, .iOS, and .UWP. What's going on?

This question seemed to pose a similar issue
but I'm unclear on whether mattward's response is supposed to imply a solution. Same thing happens with a fresh Xamarin.Forms solution.

I'm using VS15, NuGet, on a Win10, x64 machine.

Best Answer


Sign In or Register to comment.