Does latest version of StackExcahnge.Redis is supported in .NetFramework 4.0? - stackexchange.redis

I tried to add the StackExchange.Redis in my project file and got the below error
"Could not install package 'StackExchange.Redis 2.0.601'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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."
Does latest version of StackExcahnge.Redis is supported in .NetFramework 4.0?

No.
According to Nuget, the current version (v2.0.601) has a minimum requirement of .Net Framework 4.6.1

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.

Version number in Nuget manager differs from one from properties window in VS 2017

I don't understand why the version number for .NET Standard shown in Nuget Package Manager differs from
one shown in Properties Window.
In addition, the drop down list does not provide us with the version number shown in Properties Window. The list cannot be selected as well.
Question
What is wrong with this issue?
There is nothing wrong here.
The .NET Standard 1.4 is the framework your project is targeting.
The .NET Standard Library NuGet 1.6.1 package is used by the .NET Core SDK you have installed. It defines the APIs that are available to your project based on the project's target framework. The 1.6.1 library supports all .NET Standard project's from 1.0 through to 1.6.
The version of the .NET Standard Library NuGet package is not expected to match the target framework of your .NET Standard library project. As of today there are only 3 versions of this NuGet package:
1.6.0
1.6.1
2.0.0
If you look inside the .NET Standard Library 1.6.1 NuGet package you will see different dependencies based on what your project's target framework is. There are different dependencies for:
.NET Standard 1.0
.NET Standard 1.1
.NET Standard 1.3

Can't upgrade Xamarin.Forms NuGet package for Android project

When I am trying to upgrade Xamarin.Forms NuGet package from 2.0-2.1 to 2.3.1.114 (latest stable at the moment) I get the following error (even with new blank projects) is there a way to fix it?
Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.Android.Support.v4 23.3.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', 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.
0
Try this option for your project:
This error is most probably because your xamarin forms version is not compatible with Xamarin.Android.Support.v4 23.3.0 available through NuGet. Check this thread on xamarin official forum. As per this thread, 23.3 is not supported by Xamarin forms. On more possible reason is that your xamarin form version is not compatible with the latest update. You can try updating forms to latest version. In case if that doesn't work, then probably you should continue with the version you already have.

How to install 'MvvmCross.HotTuna.MvvmCrossLibraries 4.0.0-beta3' on Xamarin PCL?

Following this tutorial I'm trying to install MvvmCross.HotTuna.MvvmCrossLibraries in Core project. The latest version of this library 'MvvmCross.HotTuna.MvvmCrossLibraries 4.0.0-beta3'.
After adding Nuget Package I have the following error:
Could not install package 'MvvmCross.HotTuna.MvvmCrossLibraries 4.0.0-beta3'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.0,Profile=Profile14', 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.
Does anyone know what the problem is?
Answer to original question:
MvvmCross is not available for ASP.NET. You need to use it in one of the compatible frameworks like UWP, Xamarin.Android, Xamarin.iOS or a PCL.
Updated Question:
MvvmCross uses at least .NET 4.5 with profile 259. Switch to those to be able to install the libraries.

Add async await support for PCL library

I'm creating PCL library to be used at Windows Store 8.0 and Windows Phone 7.5 clients.
I created new PCL project and chose the following:
https://dl.dropboxusercontent.com/u/19503836/pcl_profile4.png
Selected profile covers .net 4.5 and silverlight 4.0 thus they were enabled automatically.
As a result I have Profile4 selected but when I'm trying to add Async nuget package to PCL project:
http://www.nuget.org/packages/Microsoft.Bcl.Async
I'm getting an error that this profile is not supported:
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.0.19)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
'Microsoft.Bcl.Build 1.0.10' already installed.
'Microsoft.Bcl 1.0.19' already installed.
'Microsoft.Bcl.Async 1.0.16' already installed.
Adding 'Microsoft.Bcl.Build 1.0.10' to PortableClassLibrary1.
Could not install package 'Microsoft.Bcl.Build 1.0.10'. You are trying to install this package into a project that targets 'portable-win+net45+sl40+wp', 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.
How to create PCL library and add Async/Await support WITHOUT cheating the *.csproj file (I know I can specify profile there but I need to be able to it via UI for DEMO purposes).
Your project is targeting Windows Phone 7.0, not 7.1/7.5. Change your target to "Windows Phone 7.5 and higher".
For best results, uninstall all NuGet packages, change your targets, and then re-install your NuGet packages.

Resources