Xamarin Forms SQLite-net PCL nuget package failing to install

Following Local Databases Xamarin guide in order to add SQLite database to a Xamarin Forms project I spent quite some time on adding the “SQLite.Net PCL” nuget package. It failed with the next message:

Could not install package ‘System.Runtime.InteropServices.RuntimeInformation 4.0.0’. You are trying to install this package into a project that targets ‘.NETPortable,Version=v4.5,Profile=Profile111’, 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.

The solution is pretty easy, you just have to install “System.Runtime.InteropServices.RuntimeInformation” before installing “SQLite.Net PCL”  nuget package.

More details can be found here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s