Could not create Appxupload under AppPackages folder in UWP

Because your csproj configuration may not correct configured.

Open the csproj file(project file) with text, make sure

<UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>

is TRUE, that's it.