2017-07-19 83 views
1

我正試圖進入商店。由於這是一個WPF應用程序,我必須使用makepri.exe。即使我遵循指南中給出的確切參數,它仍會失敗。我給它的參數是:未記錄的MakePri.exe

cd "C:\Users\XXX\Documents\Visual Studio 2017\Projects\MyCompany.MyApp\MyCompany.MyApp" 

"C:\Program Files (x86)\Windows Kits\10\bin\x86\makepri.exe" createconfig /o /cf priconfig.xml /dq en 

"C:\Program Files (x86)\Windows Kits\10\bin\x86\makepri.exe" new /o /v /pr . /cf priconfig.xml 

它創建從第二行的priconfig.xml但沒有3號線。

Option Verbose specified 
Option ProjectRoot specified 
Option Configxml specified 
MakePri: warning: Output location of PRI file(s) is detected to be under the project root. If previously generated PRI file(s) is present, these may be re-indexed and lead to unexpected results. 
Index Pass Completed. 
AlternateForm Qualifiers: UNPLATED 
Language Qualifiers: en,de,es,fr,ja 
Scale Qualifiers: 100,400,150,125,200,150,125,400,100 
TargetSize Qualifiers: 256,16,24,32,48 


MakePri: error 0x80073b0d: Processing Resources failed with error: Invalid ResourceCandidate type. 

MakePRI: error 0xdef01023: Unspecified error occurred. 

我覺得這是因爲我有Resources.zh.resx,但之後我刪除從項目文件它仍然發生。有沒有人對我如何使它工作有任何建議?不知道爲什麼它現在兩次列出比例限定符。

回答

1

得到這個工作通過設置平臺版本(仍然無證)

「C:\ Program Files文件(x86)的\的Windows套件\ 10 \ BIN \ 86 \ makepri.exe」 createconfig/O/CF priconfig.xml/pv 10.0.0/dq en

一旦設置了第三個命令的工作。