Esri.ArcGISRuntime nuget package is not supported for netcoreapp2.2 - esri

I'm trying to use the following classes CredentialRequestInfo and Credential.
And as mentioned in ArcGIS Developers, in order to use the classes we need to install Esri.ArcGISRuntime nuget package.
But when installing the package, I get the following error:
The 'Esri.ArcGISRuntime' nuget package is not supported for the Target Framework 'netcoreapp2.2'
Is there a work-around we can do in order to use this nuget package? Or is there any updates or what?

After searching and talking with developers in esri. Found out that to use this nuget package I have to use .net core 3.1.
Esri.ArcGISRuntime will not work with .net core 2.2.

Related

Failure to Install Microsoft.AspNetCore.AppRef

When I tried installing Microsoft.AspNetCore.AppRef in my webapplication in .net core 3.1.
However, I get this error instead:
Package 'Microsoft.AspNetCore.App.Ref 3.1.3' has a package type 'DotnetPlatform' that is not supported by project 'xxxxxx'.
NU1213 The package Microsoft.AspNetCore.App.Ref 3.1.3 has a package type DotnetPlatform that is incompatible with this project.
Any ideas how to fix?
Acording to the package description on nuget:
This package is an internal implementation of the .NET Core SDK and is not meant to be used as a normal PackageReference.

Is the nuget package Microsoft.AspNet.WebApi.Core 5.2.7 compatible with .Net Core 2.2?

I am getting the following warning in my .NET Core 2.2 application:
Warning NU1701 Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using
'.NETFramework,Version=v4.6.1' instead of the project target framework
'.NETCoreApp,Version=v2.2'.
This package may not be fully compatible with your project.
Are there any alternatives for this package?
As said in comments, this is not needed for a ASP.NET Core project. Remove it via NuGet and you should be good to go.

dependency could not be resolved

I am trying to build a web site using .net framework core with entity framework core. I created a web project using the ASP.NET Core Web Application (.net core) template with Visual Studio 2015 Professional (update 3). Then I used Nuget to add the Microsoft.EntityFrameworkCore.Tools to the solution.
When I compiled the solution, I got this dependency error - "NU1001 The dependency Microsoft.EntityFrameworkCore.Tools >= 1.0.0-preview2-final could not be resolved". I googled the topic but couldn't find the solution. How can I fix this??
For those who may run into this problem, you would need to right click on the References and click Restore Packages. That solved the problem.
Have you added the following nuget Packages sources in your nuget package?
https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json
You can do so in Tools > Nuget Package Manager Settings > Packages sources
Also, what is your SDK version?
It should be "1.0.0-preview2-003131".

Check if package is compatible with .net core

I started programming with .NET Core and ASP.NET Core and after reading many Docs/Tutorials i still am not sure of how to realize if a Nuget-(Meta-)Package is comptabile/usable within my .NET-Core-App.
How to check if a NuGet-Package is compatible with .NET Core.
E.g. the often recited Newtonsoft JSON. Is it compatible/usable - and how to see this?
Is there a list of all the available .NET Core packages?
(Like here it lists a few
key NuGet packages for .NET Core
). But since they say those are "key" packages i would assume there are more. But which?
The best way to understand compatibility is table here
In this table you can check what API version support NuGet package. If it is standard 1.0+ - it works with .Net Core
For checking (supported API version) dependencies on your package, you can check page of package on nuget.org or in your package manager
Here is an example for Rider
maybe that will be helpful - lots of popular packages https://github.com/thangchung/awesome-dotnet-core
I also don't see nuget.org mentioned anywhere so:
https://nuget.org
General rule of thumb for me is:
if package has a dependency on net standard or .net core, it will run with .net core(mind the versions also)
https://packagesearch.azurewebsites.net
Go to site and search for package to find its compatibility
Well, in fact you don't have to worry, the NET core application will indicate you if the package is compatible or not when you will run a dotnet restore command in your project.
Let say that you have the famous CSVHelper package registered in your csproj file :
<PackageReference Include="CsvHelper" Version="0.12.0"/>
Then, when you'll run any dotnet command such as build or run, you'll have the following input in the console in case of, here, cross-compatibility:
YourProjet/aspnetapp.csproj : warning NU1701: Package 'CsvHelper 0.12.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v2.2'. This package may not be fully compatible with your project.
Basically, it mean that NET Core application can use ASP.NET NuGet package, and so far, I've never cross on a non-compatible package. Even if version is incorrect, the build will get the most recent matching version of the NuGet package.
Hoped it answer your question.

How can I get the list of NuGet packages available for KRuntime?

It looks like only a part of BCL is supported for KRuntime. Is there a list of the assemblies in BCL that will be supported? ASP.NET vNext repositories don't include any of the System.* libraries. It would be useful to check if a library can be ported.
I also found useful this myget gallery for asp.net vnext dev branch or master branch
ASP.NET vNext has a package feed on MyGet. It looks like we can query it with NuGet.exe.
NuGet.exe list -Source "https://www.myget.org/F/aspnetvnext/api/v2"
Update:
Checking the feed with NuGet Package Explorer is a better alternative. You can easily open up package contents and see if KRuntime is supported. As far as I can see, not all of the packages listed there are supported on KRuntime.