Windows Store App Heirarchical导航模板makepri编译错误

时间:2014-04-11 20:06:36

标签: xaml windows-store-apps visual-studio-2013

我试图在VS2013中的机器上进行HeirarchicalNavTemplate编译。只需解压缩模板(在http://code.msdn.microsoft.com/windowsapps/Windows-Store-hierarchical-4b1c67c4#content处可用),就会导致以下编译错误:

1>------ Build started: Project: HierarchicalNavTemplate, Configuration: Debug Any CPU ------
1>  HierarchicalNavTemplate -> C:\Users\rw3\Downloads\Windows Store app hierarchical navigation%2c start to finish2\C#\bin\Debug\HierarchicalNavTemplate.exe
1>MakePri : error 0x80004005: Processing Resources with error: Unspecified error
1>C:\Users\rw3\Downloads\Windows Store app hierarchical navigation%2c start to finish2\C#\Strings\en-US\Resources.resw : error 0xdef00502: MakePRI: root node not found.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

将MSBuild日志记录级别转换为诊断程序会显示有问题的命令是

"C:\Program Files (x86)\Windows Kits\8.1\bin\x64\MakePri.exe" New -ProjectRoot "C:\Users\rw3\Downloads\Windows Store app hierarchical navigation%2c start to finish2\C#\\" -ConfigXml obj\Debug\priconfig.xml -OutputFile "C:\Users\rw3\Downloads\Windows Store app hierarchical navigation%2c start to finish2\C#\bin\Debug\resources.pri" -IndexName adf73318-7321-478b-9e3a-899a435c2a85 -Verbose -Overwrite

命令中引用的相关priconfig.xml文件粘贴在此处:http://pastebin.com/s3BZWvbS

命令中引用的相关Resources.resw文件粘贴在此处:http://pastebin.com/TEKPGveq

这两个文件似乎都没问题,并通过XML验证来获取语法。任何人的见解都表示赞赏。

1 个答案:

答案 0 :(得分:4)

它不喜欢路径中的HTML转义字符%2c

重命名目录

C:\Users\rw3\Downloads\Windows Store app hierarchical%2c navigation start to finish2

C:\Users\rw3\Downloads\Windows Store app hierarchical navigation start to finish2