Parse Backend with Windows 8.1 Phone Development - parse-platform

I am trying to use Parse Backend Services in my app and I was installing their Nuget Package in my project.
But it's showing the following error.
Install-Package : Could not install package 'parse 1.4.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.
Is there anyway to use Parse Backend Service in Windows 8.1 Phone Development.

Well, It seems now that Parse is now also supporting .NET with full support to .net framework 4.5.

Related

Could not install package 'Microsoft.Extensions.Logging 2.1.1'

I'm trying to update Bing Ads SDK to version 12.13.5. I am using Visual Studio 2013. Nuget version is 2.12.0.817. When I try to update, I get the following error:
Could not install package 'Microsoft.Extensions.Logging 2.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', 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.
I tried installing Microsoft.Extensions.Logging 3.0.0 (latest version) and get the same error.
I also tried targeting .NET version 4.6.1 and 4.5.2 and got the same error.
For anyone else who may have this problem, the solution was to manually add a package entry
for Microsoft.Extensions.Logging 2.1.1 to packages.config. This allowed the Bing Ads SDK package to update successfully.
As indicated in the docs, your platform needs to be .NETStandard 2.0 or .Net Core 2.1.
The libraries that target .NETStandard2.0, means any .NET Core app that is compatible with the .NET Standard 2.0 can use them, regardless of the .NET SDK they are using.

Cannot install NuGet packages to PCL - "package does not contain any assembly references or content files that are compatible with that framework"

I am trying to follow a tutorial on consuming web services in Xamarin Forms. I created a fresh project and have tried to install Refit, that didn't work so I tried to install RestSharp. I can install both of these libraries to my Droid / iOS projects, but not to the PCL. I get the following error in Visual Studio:
Could not install package 'Refit 4.0.1'. 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
Could not install package 'RestSharp 106.2.1'. 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
I've found this post on the xamarin forums, but it didn't fix my issue. My project is fresh, everything is up to date... Does anyone know how I can fix this issue?
vents XF is supposed to make developing cross platform apps faster & easier, but i think I'd have done this poc in native ios/droid twice in the time it's taken me to install a library to a blank project! :)
This happens because RestSharp it's not compatible with PCL-library. So you will have to handle whatever you're trying to do in platform specific.

ADAL 3 Windown 8.1 App Nuget Update failing

My Windows 8.1 app is using ADAL 2.11.10918.1222 without a problem. I wanted to update to ADAL 3.x using NuGet package manager but it is failing with this error:
Failed to add reference to 'Microsoft.IdentityModel.Clients.ActiveDirectory'
I compared the Microsoft.IdentityModel.Clients.ActiveDirectory.3.10.305231913 package folder with the older version and realized in ADAL 3 package all libraries have Dll extension whicle in ADAL 2 libraries that I use are winmd files.
Has anyone tried to upgrade ADAL for Windows 8.1 solution? Is ADAL 3 supported for Windows 8.1 Apps? I am using Visual Studio 2015 with all updates installed
ADAL v3 does not support Winmd anymore. It only provides class library now.

Xamarin.Forms Package Erorr

Has anyone encountered this error when adding the Xamarin.Forms package through the "Add NuGet package" option?
PS I'm using Xamarin Studio and I only encounter this with Windows.
Error message is:
Could not install package 'Xamarin.Forms 2.2.0.31'. You are trying to
install this package into a project that targets
'.NETFramework,Version=v4.5,Profile=Profile78', but the package does
not contain any assembly references or content files that are
compatible with that framework.
Here is the screenshot
You are having a profile which has portable class Profile78.Profiles are the type of your portable class where you select the target projects which can use your PCL. The more you select the less functionality can be provided.
You need to change it to another one. Usually most classes (including Xamarin.Forms) are supporting Profile111. Profile111 is a profile which does not support Silverlight in contast du Profile78. So you need to go to Properties and deselect Windows Phone Silverlight and Silverlight. You can select everything else (.Net 4.5, Windows 8, Windows Phone 8.1, Android, iOS/iOS classic and ASP.NET Core 1).
Then try adding Xamarin.Forms again.
You can see more information with a list of all(?) profiles here.
Here you see how to change in Visual Studio project Properties:
And here in Xamarin Studio project Option:
The problem is that you do not have the Portable Class Library (PCL) profiles installed on Windows. Xamarin.Forms 2.2.0.31 supports Profile78 so changing it to Profile111 will not fix the problem.
The error message itself indicates that this is the problem since it refers to Profile78. If the NuGet package was really incompatible then NuGet would show the frameworks in the PCL profile in its error message not the profile number. If I try to install Xamarin.Forms 2.2.0.31 into a PCL project that targets Profile1 which is not supported by Xamarin.Forms then I get an error:
Could not install package 'Xamarin.Forms 2.2.0.31'. You are trying to install this package into a project that targets 'portable-net40+sl40+win+wp+Xbox40', 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.
Note that Profile1 is not mentioned.
There are detailed instructions on installing Portable Class Libraries for Xamarin Studio which I will summarize here:
To install the Portable Class Libraries on Windows you have three options:
Install Visual Studio 2013 (full or Express version). Update 2 or
above is required.
Install the Portable Library Tools and the Portable Library Reference Assemblies 4.6.
Install the Portable Library Tools and copy the .NETPortable directory from Mono over to Windows.

Error Installing RestSharp in a Xamarin iOS app - Could Not Install Package

Trying to add package RestSharp to Xamarin iOS app. Receive error:
Could not install package 'RestSharp 105.0.1'.
You are trying to install this package into a project that targets
'Xamarin.iOS, Version=v1.0' but the package does not contain any assemblies
compatible with the framework.
The RestSharp NuGet package from NuGet.org does not contain any assemblies that are compatible with iOS.
There is a RestSharp component available from Xamarin's component store which you could use instead.
Another option is to find a different NuGet package that provides a portable class library. There are a few portable versions of RestSharp available on NuGet.org

Resources