Package Installation Error Microsoft.NetCore.UniversalWindowsPlatform.5.0.0

I just did a fresh install of visual studio community edition. When I start a new project and choose 'Blank App (Universal Windows)' I get this error during project creation:

Package Installation Error Could not add all required packages to the project. The following packages failed to install from 'C:\Program Files (x86)\Microsoft SDKs\NETCoreSDK': Microsoft.NetCore.UniversalWindowsPlatform.5.0.0: Package restore failed. Rolling back package changes for 'AppTest'

Any ideas what the cause of this error can be?

I installed all the Universal Windows App Development Tools: - Tools (1.3.2) and Windows 10 SDK (10.0.10586) - Emulators for Windows 10 Mobile (10.0.10586) - Windows 10 SDK (10.0.10240).

What am i missing. How can I solve this issue?

Sometimes nuget fails to install the UniversalWindowsPlatform package. Search for "Microsoft.NETCore.UniversalWindowsPlatform" nuget package and install it.

Package Installation Error Microsoft.NetCore - iOS, The following packages failed to install from 'C:\Program Files (x86)\Microsoft SDKs\NETCoreSDK': Microsoft.NetCore.UniversalWindowsPlatform.5.0.0:  The package causing this is: “Microsoft.NETCore.UniversalWindowsPlatform.5.0.0” Unable to find version 5.0.0 of package Microsoft.NETCore.UniversalWindowsPlatform. When I manually ran the install-package command in the package console I got more info. The Jit package was also failing to install (dependency)

This is not an answer, I have the exact same issue and I have found other people with the same issue on the web, no one has come up with a solution yet. This is upon creation of 'any' UWP project type, blank, templated, VB, C#. This dialog pops up:

I have already found and tried all of the steps mentioned by Jay Zuo. This is actually for a slightly different issue, the dialog is exactly the same apart from the bit, where we have ': Package restore failed.' They are getting ': Solution is not opened or not saved' None of the steps on that post help resolve this issue. I have tried restoring VS, Reinstalling the Windows 10 SDK, resetting VS using the various options to reset user data, environment etc, made sure the path to the SDK files exists. Nothing has worked and my VS2015 Community is utterly useless right now for working on UWP projects. This is a new Windows 10 / VS install (VS on insider fast PC has no issue at all but I need this one on production build).

I am posting as an answer as I do not have enough points to comment but starting a new thread seems daft as this is the exact same issue, I just want to add more detail to it.

Microsoft.NETCore.UniversalWindowsPlatform 6.2.10, x this package requires at least version 3.4. Requires NuGet 2.12 or higher. Package Manager .NET CLI; PackageReference; Paket CLI. Install-Package  I have a UWP class library with Microsoft.NETCore.UniversalWindowsPlatform version 5.2.0 nuget package installed (released very recently by Microsoft). In that class library, I tried to install AutoMapper version 5.0.0 via pakage manager

I had the same probem after a clean install of OS/Updates/VS 2015 Update 3 + Xamarin update. I created a Universal 'Blank XAML App (Xamarin Forms Portable)' During creation I received same error.

In the Nuget Package Manager Console pick AppX.UWP, then run:

Install-Package Microsoft.NETCore.UniversalWindowsPlatform 

Restart VS and create a new project, error does not come back.

Package installation error when creating new cross platform project , project I get an error dialog that there was in installation error of the NuGet package Microsoft.NETCore.UniversalWindowsPlatform.5.0.0, and  Attempting to resolve dependencies for package 'Microsoft.NETCore.UniversalWindowsPlatform.5.0.0' with DependencyBehavior 'Lowest' Resolving actions to install package 'Microsoft.NETCore.UniversalWindowsPlatform.5.0.0' Resolved actions to install package 'Microsoft.NETCore.UniversalWindowsPlatform.5.0.0' Install failed. Rolling back

So after much back and forth between myself and an MS rep on their forums I did actually manage to resolve this. The forum link is here

I did actually need to reset my VS installation to try and get a clean install. Then the actual error reared its head. In my case it was Nuget caching corrupt packages (these are not cleaned by a VS reinstall).

The link that helped me resolve it in the end can be found here on Stack Overflow

Resolved Package Installation Error Microsoft.NetCore , Package Installation Error Microsoft.NetCore.UniversalWindowsPlatform.5.0.0. I just did a fresh install of visual studio community edition. When I start a new  This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.

What helped me was to update the UniversalWindowsPlatform package in nuget to 5.1.0. Then all went smoothly the next time I created UWP project.

Microsoft.NETCore.UniversalWindowsPlatform fail to install at file , UniversalWindowsPlatform.5.0.0” Unable to find version 5.0.0 of package Microsoft. When I manually ran the install-package command in the package looked like this after the file new project and the popup with the error:. When I try to open or create a new Universal App project I get a message that I don't have .NETCore 5.0. Where do I get one? I have installed Visual Studio 2015 community with all possible options.

Visual Studio 2017, The package causing this is: “Microsoft.NETCore.UniversalWindowsPlatform.5.0.​0” Unable to find version 5.0.0 of package Microsoft.NETCore. dotnet add package Microsoft.NETCore.UniversalWindowsPlatform --version 6.2.10 <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.10" /> For projects that support PackageReference , copy this XML node into the project file to reference the package.

Not able to install any packages from nuget into - MSDN, I created a new UWP soluiton and trying to install adal library into a project in teh solution but it shows me an error " Package restore failed. Rolling Microsoft.​NETCore. UniversalWindowsPlatform (>= 5.0.0) -> Microsoft. Since the Upgrade every Build fails at Nuget Package Restore with the following Log entry: ##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\2.105.2\externals uget uget.exe failed with return code: 1 ##[error]Packages failed to install ##[error]Return code: 1 The Update Package Info for Microsoft.NETCore

AutoMapper nuget package installation failed with Microsoft , class library with Microsoft.NETCore.UniversalWindowsPlatform version 5.2.0 nuget package installed (released very recently by Microsoft). In that class library, I tried to install AutoMapper version 5.0.0 via pakage manager. The package manager will disable dependency checking. With this option it is possible to install a package even when it depends on another package which is not installed on the system. Use this option with care.-local. A local installation (package available only to current user) is forced, even if the user has system privileges. -global

Comments
  • "Rolling back package chnages" - is this copied verbatim from the output pane/error dialog, or did you transcribe this? Please make sure to post the exact error message always. In case this is a dialog, you can copy-paste it using the standard [Ctrl]+C/[Ctrl]+V keyboard shortcuts.
  • Thanks. That was a type mismatch indeed
  • I didn't encounter this problem before, but after a quick search, I found a similar question here. Hope it helps.
  • I just encountered this problem. I have an solution and want to add a Project named TestApp. This results in the described problems. This is reproducable. Deleting the project and recreating it leads to the same error. Including the same steps in other solutions. However using another name for the Project fixes the problem. I just can't use the name TestApp. This is odd.
  • Hi BGTurner. Have you made any progress on this issue? I still face the same issue.
  • Hi Denny and Stefan, I did get it resolved in the end, have added my answer to the list. Hope it helps you.
  • try @jlo-gmail answer below
  • Unfortunately it does for me
  • Works for me on VS2017 RC, no more errors for new projects
  • This did it for me. I didn't have to go through and update any packages like the other answers. Those probably work as well because it gets rid of whatever was corrupt in the cache. I think this solution should be picked since it could solve a broader list of issues with nuget. It's good to have this in my belt of troubleshooting tactics for future use.
  • For me it was on the contrary - Xamarin template created a project which referenced Microsoft.NetCore.UniversalWindowsPlatform.5.2.x (where x was some older version) but I had installed Microsoft.NetCore.UniversalWindowsPlatform.5.2.2, so I had to downgrade.