Error restoring nuget packages, UWP project

Asked

Viewed 886 times

1

I have a project Xamarin UWP, and by doing the build of the project, happens a series of mistakes of that kind:

Severity Code Description Project File Line Suppression State Error System.Collections.Concurrent 4.0.10 is not compatible with UAP,Version=V10.0 (win10-x64). 0 Error System.Appcontext 4.0.0 is not compatible with UAP,Version=V10.0 (win10-Arm). 0
Error System.Reflection 4.0.10 is not compatible with UAP,Version=V10.0 (win10-x64). 0
Error System.IO.Compression.Zipfile 4.0.0 is not compatible with UAP,Version=V10.0 (win10-x64-Aot). 0 Error Autofac 3.5.2 is not compatible with UAP,Version=V10.0 (win10-x64-Aot). 0 Error Cannot resolve Assembly or Windows Metadata file 'System.Runtime.dll' InfinitusApp.UWP C:\Workspace\AppGestor\InfinitusApp\InfinitusApp\InfinitusApp.UWP\InfinitusApp.UWP.csproj
Error Type Universe cannot resolve Assembly: System.Runtime, Version=4.0.0.0, Culture=neutral, Infinitusapp.UWP

From what I researched is some error with the nuget, I have already made these following steps, that do not solve:

  • Intalar and uninstall nuget.
  • Delete the Packages folder and build again.
  • Update SDK and Xamarin.

1 answer

-1

I had the same problem, so I followed these steps to solve it:

  1. Update by Nuget’s Microsoft.NetCore.Universalwindowsplatform for the version 5.2.2.
  2. Then right after installing the packages click with the button right mouse and make a new build and deploy.

Ps: You may need to restart Visual Studio.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.