Finally, after several days of repair and reinstallation, I finally fixed it.
Step 1. Suppose you installed Visual Studio in the default folder, go to the following folder: C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage
Step 2: Rename Microsoft.AppxPackage.Targets to another. I added "-old" after the package.
Step 3: Clean up the solution.
Step 4: Make sure you are targeting Windows 10 Build 10586.
Step 5: Build a Solution.
The file with my target files is dated May 31, 2016, before I even installed Visual Studio 2015. Before I did these steps, I also deleted everything in the bin / Debug folder, but I'm not sure if this helped or not.
James source share