I can't create a universal 10 project after up

2019-02-25 11:53发布

问题:

Problem

I have upgraded my windows 8.1 pro 64 bits to windows 10 64 bits to work on universal apps with windows 10,but what I note is there many errors when I create a new universal 10 project with visual Studio 2015.

Tried

  • modified the installation of visual Studio
  • and the universal tools are already installed
  • then I have repaired visual Studio

but always I have a problem in opening a universal 10 Project (those errors are not appeared when I come to create a universal windows 8.1 app project).

Question

those errors appears only in App.xaml.cs,any help please how can I solve the error

thanks for help

回答1:

Once I stumbled on the same problem. I was able to fix it like this:

  • open Nuget package manager, show installed packages, uninstall the one with name Microsoft.NETCore.UniversalWindowsPlatform
  • now search net for package with the same and install it.

After this I was able to build successfully the project.

Also please check if you have installed the latest VS update - link