问题描述
我正在尝试构建Windows Phone应用.我目前遇到错误:
I am trying to build a Windows Phone app. I am currently getting an error:
Processing Resources with error: Invalid qualifier value.
File: MakePri
和
Invalid qualifier: (null)
File: MakePRI
我最初使用的是Multilingual App Toolkit,但此后我将其无效.使用冗长的输出进行构建时,我看到(已删除的个人信息):
I was originally using the Multilingual App Toolkit, but I have since disabled it to no effect. When building with verbose output, I see (personal information redacted):
8>Using "GenerateProjectPriFile" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.Build.AppxPackage.dll".
8>Task "GenerateProjectPriFile"
8> C:\Program Files (x86)\Windows Kits\8.1\\bin\x86\MakePri.exe New -ProjectRoot [Redacted] -ConfigXml obj\Debug\priconfig.xml -OutputFile [Redacted] -ExtensionDll "C:\Program Files (x86)\Windows Phone Kits\8.1\bin\x86\MrmEnvironmentExtDl.dll" -IndexName 14de7fbe-f3e3-43a8-a9df-dddc72828f37 -Verbose -Overwrite
8> Option Verbose specified
8> Option Overwrite specified
8> Index Pass Completed: obj\Debug\layout.resfiles
8> Scale Qualifiers: 240
8>
8> Index Pass Completed: obj\Debug\resources.resfiles
8>
8>MakePri : error 0x80073b0a: Processing Resources with error: Invalid qualifier value.
8>
8>
8>MakePRI : error 0xdef00042: Invalid qualifier: (null)
8> The command exited with code -2147009782.
8>Done executing task "GenerateProjectPriFile" -- FAILED.
诊断"模式下的输出不会提供更多信息.
The output in Diagnostic mode does not give much more information.
推荐答案
解决方案
我有一个可移植的类库,由于某种原因,该类库在根本不使用BCL Build Components的情况下安装了它.我通过Nuget将它们从PCL中删除,问题就消失了.
Solution
I had a portable class library that for some reason had the BCL Build Components installed to it when it didn't use them at all. I removed them from the PCL via Nuget and the problem went away.
这篇关于Windows Phone(通用)应用程序中的生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!