I try to reference WindowsAzure.MobileServices.Backend.Security in a windows phone store app as shown in this tutorial.
When I run nuget:
PM> install-package WindowsAzure.MobileServices.Backend.Security
I get the following error:
...
Adding 'Owin 1.0' to xxxx.WindowsPhone.
Uninstalling 'Owin 1.0'.
Successfully uninstalled 'Owin 1.0'.
Install failed. Rolling back...
install-package : Could not install package 'Owin 1.0'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', 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 line:1 char:1
+ install-package WindowsAzure.MobileServices.Backend.Security
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I tried all versions of the WindowsAzure.MobileServices.Backend.Security package without success.
The Owin NuGet package only has assemblies for .NET 4.0 so you cannot install it into a Windows Phone Application.
Looking at the tutorial they add the WindowsAzure.MobileServices.Backend.Security NuGet package into the server side web application. On the Windows Phone App side they just call the web service exposed by the server side web application.