找不到错误文件"MakePri.exe" [英] Error File 'MakePri.exe' not found

查看:266
本文介绍了找不到错误文件"MakePri.exe"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2017中,我正在构建同时面向.Net 4.6和Windows Universal Application 10.0的类库(可移植).在构建应用程序时,抛出以下错误.

In Visual Studio 2017, I am building Class Library(Portable) which targets both .Net 4.6 and Windows Universal Application 10.0. While building the application, below error is thrown.

错误找不到文件'MakePri.exe'.请参阅 http://go.microsoft.com/fwlink/?LinkID=798187 更多信息.

Error  File 'MakePri.exe' not found. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information.

我已经完成了以下操作
-已安装最新的Windows 10 SDK
-修复了Visual Studio 2017
-同样在环境变量中,"WindowsSdkDir"不可用
-路径"C:\ Program Files(x86)\ Windows Kits \ 10 \ bin"存在,并且该文件也可用

I have done the following
- Installed Latest Windows 10 SDK
- Repaired Visual Studio 2017
- Also in the environment variables, "WindowsSdkDir" is not available
- The path "C:\Program Files (x86)\Windows Kits\10\bin" exists and this file also available

我已使用以下帖子解决此问题. https://social.msdn.microsoft.com/Forums/zh-CN/8c752e9e-85df-4fee-8026-9b54b6e46be2/vs1517-error-appx1639-missing-file-makepriexe?forum=msbuild

I have used the following post to troubleshoot this issue. https://social.msdn.microsoft.com/Forums/en-US/8c752e9e-85df-4fee-8026-9b54b6e46be2/vs1517-error-appx1639-missing-file-makepriexe?forum=msbuild

但是仍然没有运气.

推荐答案

我遇到了同样的问题,经过几天的困扰,我终于设法解决了这个问题.从构建日志中,我看到VS无法找到makepri.exe文件.在Microsoft.AppXPackage.Targets文件中,使用了变量 MakePriExeFullPath ,因此,我使用该名称为系统添加了新的环境变量.为了获得价值,我将其指向Windows 10 SDK文件夹中的makepri.exe,该文件夹位于我的计算机上的以下位置:

I encountered same problem and after bugging me for a few days i finally managed to fix it. From build logs I saw that VS is not able to find makepri.exe file. In Microsoft.AppXPackage.Targets file variable MakePriExeFullPath is used, so I added new environment variable for my system with that name. For value, i pointed it to the makepri.exe in windows 10 SDK folder, which is on my machine in:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\MakePri.exe

这篇关于找不到错误文件"MakePri.exe"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆