ADAL 3 Windown 8.1 App Nuget Update failing - visual-studio

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.

Related

Upgrade to OneSignal 4.0 SDK not compatible with PCL Profile44 and others Visual Studio Mac 2022

when trying to install the OneSignal 4.x SDK to the shared project part of my pcs project I get the following error:
OneSignalSDK.Xamarin 4.1.0 with .NETPortable,Version=v4.5,Profile=Profile259.
Package OneSignalSDK.Xamarin 4.1.0 is not compatible with portable45-net45+win8+wp8+wpa81 (.NETPortable,Version=v4.5,Profile=Profile259). Package OneSignalSDK.Xamarin 4.1.0 supports:
monoandroid41 (MonoAndroid,Version=v4.1)
netstandard2.0 (.NETStandard,Version=v2.0)
xamarinios (Xamarin.iOS,Version=v0.0)
I tried almost every other Profile with the same result. I cant get this to install.
The SDK installs fine in the iOS and Android projects. And the former sdk 3.x also installed fine.
Any help on this would be great!
Thanks
Thomas

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.

Behaviors SDK Not available in Vs2017

I've developed a UWP project with Behaviors SDK in VS2015 (Windows 10).
Then I've installed VS2017 and tried to run the app without any changes. Unfortunately I'm getting below error for Behaviors SDK.
Are there any solution or workaround for this problem?
Reference Image:
Error Output:
error MSB3774: Could not find SDK "BehaviorsXamlSDKManaged, Version=12.0"
You should use the Microsoft.Xaml.Behaviors.Uwp.Managed nuget package instead (or Microsoft.Xaml.Behaviors.Uwp.Native if you develop your application in C++). The source code of these packages are available on GitHub.
Behaviors SDK was created for WinRT projects (Windows 8.0/8.1). Microsoft.Xaml.Behaviors.Uwp.Managed package seems to be a recommended replacement for the Behaviors SDK for the UWP applications (even in VS2015).

Parse Backend with Windows 8.1 Phone Development

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.

Nuget, PCL, sl40 sl4 win8 win profile differences

I have PCL with ".NET 4 and higher, Silverlight 4 and higher, Windows Phone 7 and higher, Windows Store apps (Windows 8)" (from project->properties window).
I have Microsoft.Bcl version 1.1.3 installed.
When I want to update the reference to 1.1.6 I see following.
Install-Package : Could not install package 'Microsoft.Bcl 1.1.6'. You are trying to install this package into a project that targets
'portable-net40+sl40+wp+win', 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.
Looking at packages folder I see following:
./Microsoft.Bcl.1.1.3/lib/portable-net40+sl4+win8+wp71
./Microsoft.Bcl.1.1.6/lib/portable-net40+sl4+win8+wp71
Now the questions:
What is the difference between sl40 and sl4 profile, win8 and win
profile and wp and wp71 profile?
How can I update Microsoft.Bcl 1.1.6 in my project?
Microsoft.Bcl is targeting a later version of Windows Phone than your PCL project which is why it is failing to install.
Framework differences
sl40 and sl4 - same framework
win8 and win - same framework. win means win version 0.0 but NuGet maps this to win8
wp and wp71 - different frameworks. wp means wp version 0.0 but it is equivalent to wp7 by the way NuGet maps the frameworks.
Updating to Microsoft.Bcl 1.1.6
To install Microsoft.Bcl you will need to update your PCL project so it targets wp71 or above. So you can choose to target Windows Phone 7.5 or later or Windows Phone 8 or later.
If you choose Windows Phone 7.5 or later that seems to map to wp71 in Nuget.

Resources