File 'MakePri.exe' not found

I use Visual Studio 2013 for most of my development needs. I installed Visual Studio 2015 (Professional) and started watching the Universal Windows application. I created an empty application and built it. The following error failed:

File 'MakePri.exe' not found. See http://go.microsoft.com/fwlink/?prd=12560&pver=1.0&plcid=0x409&ar=MSDN&sar=PlatformMultiTargeting&o1=UAP&o2=10.0.10586.0 for more information. App4 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets 

I could not do anything, as other applications (e.g. websites, Classic Desktop) build perfectly. I looked up and found pointers to the SDK path. I turned on the options and turned on the output of the MSBuild project for diagnostics. Here is the log from the Output window. I found where this fails, but I cannot figure out how to fix it. The output is very detailed and exceeds the character limits here. But here is the part that has the error information.

 1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(892,5): error APPX1639: File 'MakePri.exe' not found. See http://go.microsoft.com/fwlink/?prd=12560&pver=1.0&plcid=0x409&ar=MSDN&sar=PlatformMultiTargeting&o1=UAP&o2=10.0.10586.0 for more information. 1>Done executing task "GetSdkFileFullPath" -- FAILED. (TaskId:50) 1>Done building target "_GetSdkToolPaths" in project "App4.csproj" -- FAILED.: (TargetId:78) 

On my machine, I do not have a Microsoft.AppXPackage.Targets (892.5) file in the folder C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ AppxPackage \

How can I fix this error? Thanks for any help.

+6
source share
2 answers

I am developing an Ionic / Cordova application and have this problem when creating appx for windows.

For me, reinstalling the Windows SDK 10.0.14393.33 from SDKSETUP.EXE http://download.microsoft.com/download/6/3/B/63BADCE0-F2E6-44BD-B2F9-60F5F073038E/standalonesdk/SDKSETUP.EXE worked for me.

+1
source

I solved this problem by removing the WindowsSdkDir entry from the system environment variables.

My WindowsSdkDir entry pointed to C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v10.0A

enter image description here

0
source

All Articles