Telerik UI for UWP NuGet install not working - c#

I am trying to download the Telerik UI for UMP NuGet package using the NuGet Package Manager (I have also tried the console) and I get the following error:
Could not install package 'Telerik.UI.for.UniversalWindowsPlatform 1.0.1.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.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.
I have tried changing my .NETFramework version to 4.6.1 as well but it did not work. Is there something I am missing here? It shouldn't be this hard to add a NuGet package, yet here I am... Thank you in advance!

Telerik.UI NuGet spec does not support .NET. It only supports Windows Universal.

Related

Having trouble while Installing a Nuget package(WIndows.winMD)

Getting error while trying to install a Nuget Package
I'm trying to install a pakage and get the following error:
NuGet\Install-Package Microsoft.Windows.WinMD -Version 1.0.210629.2'
NuGet\Install-Package : Could not install package 'Microsoft.Windows.WinMD 1.0.210629.2'. 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.
Please help
Do I understand correctly that you want to write a .net wrapper over a C++?
If so, this is nuget package does not contain dll files. Most likely you need to build the C++ library first and add build result as content in your project.
This nuget package framework is tagged with native.
nuget: Microsoft.Windows.WinMD - Frameworks
The native framework tag is for C++ projects.
DevBlogs: Support for Native Projects
Conclusion: This package can not be consumed or used by any C# project.
However, in the nuget used-by tab of that package is a reference to a C++ github project that uses this package and is described as
C# language projection for the Windows Runtime
You may have a look at that.

Can't Install Nuget Package

I am trying to install System.Runtime.Handles so I can use SafeAccessTokenHandle and RunImpersonated, however when I try to install the package I get the error :
Could not install package 'System.Runtime.Handles 4.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.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 have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
I have done some research and I do not believe there is a .NETFramework, Version=v4.3.0. Does anybody have an idea on how to install this package?
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the default version 2.8. You can check it from Tools->Extensions and Updates->Installed.
That because this nuget package require the NuGet 2.12 or higher.
Second, you should make sure you have installed the .net 4.6 and above. You should not change the framework version by unloading the project, opening the project file, changing the target framework, and then reloading the file. In this way, Visual Studio can not help to check if you have install that target framework. You should change it by right on the project select Properties->Application->Target framework:
If you do not have target framework .net 46, you can click the Install other frameworks to install it. For this question, you can just change your target framework to 4.7.1 directly.
Hope this helps.

How to add System.Data.SqlClient nuget package into .Net Portable (PCL)4.5 profile

I am writing a crossplatform (iOS and android) Xamarin app and I need a sql connection to my database. I found out that I need System.Data.SqlClient to achieve this. But when I try to add System.Data.SqlClient to my core project I get:
Could not install package 'System.Data.SqlClient 4.4.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', 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 get that apparently this .NETPortable version is compatible, but what is the solution to this? There must be a way to access a SQL database. Also I found that other posts asked to add System.Data first, but this package doesn't even show up in nuget.
In case that you change your pcl project into .NET Standard you should be able to install this nuget package.
Follow this awesome snack pack!
In Visual Studio Preview there is template to create xamarin project using .netstandard. I can confirm that it works.

Error installing Xamarin.Auth from NuGet

When installing Xamarin.Auth to my project with NuGet, I get this error:
Could not install package 'Validation 2.0.4.14103'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.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.
This is because the NuGet dependency behaviour is set to 'lowest' and Validation 2.0.4.14103 is not compatible with Xamarin.iOS,Version=v1.0
Here is a workaround:
Install the Validation NuGet package first, using the latest version 2.3.7.
Then install Xamarin.Auth, and it should work as expected without the error.

Can't install NuGet-Packages (Xamarin Android project)

I have a problem with NuGet installing the "Xamarin.JOSE.JWT" package. I get the following error:
> Could not install package 'Xamarin.JOSE.JWT 1.0.3'. 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.
Is this a known problem or is there a workaround for this?
Xamarin.JOSE.JWT 1.0.3 does not support Xamarin.Android projects. It only contains assemblies for .NET Framework 4.0.
Your options are:
Find another NuGet package that does support Xamarin.Android projects.
See if you can compile the Xamarin.JOSE.JWT project against Xamarin.Android.
Open an issue on the Xamarin.JOSE.JWT GitHub repository.
Try directly referencing the jose-jwt.dll from the NuGet package and see if it works with an Android project. This may not work if it is using parts of the .NET Framework not supported by Xamarin.Android.
Use the Xamarin.JOSE.JWT NuGet package on the server side and not in the Android project.

Categories

Resources