![](/img/trans.png)
[英]How to deploy Content generated in a Target to AppX package in a UWP app with MSBuild
[英]Errors Creating App Package (UWP, Appx) - fatal error CMF1106: failed to open input PDB file for reading
为UWP Win 10应用程序创建应用程序包时出现错误。
在我的机器上,错误是:
C:\\Users\\Developer\\.nuget\\packages\\nodatime\\2.4.0\\lib\\netstandard2.0\\NodaTime.pdb : fatal error CMF1106: failed to open input PDB file for reading (PDB error code = 11)3 input PDB file is not generated by /DEBUG:fastlinkW must read and agree to the Data Collection Policy at MSPDBCMF : fatal error CMF1000: internal error
pdb文件位于上述目录中: C:\\Users\\Developer\\.nuget\\packages\\nodatime\\2.4.0\\lib\\netstandard2.0
在托管的VSTS构建中,错误消息更加含糊:
C:\\Users\\VssAdministrator\\.nuget\\packages\\nodatime\\2.4.0\\lib\\netstandard2.0\\NodaTime.pdb : fatal error CMF1106: failed to open input PDB file for reading (PDB error code = 11)3 input PDB file is not generated by /DEBUG:fastlinkW must read and agree to the Data Collection Policy at ??? before using /errorreport:send1 warning treated as error; the PDB file is intact@ specified output filename is too long (exceeding 0 characters)
注意1 :在我的机器上,该软件包实际上已成功创建,但是在VSTS上,该步骤失败,因为它在日志中检测到错误并停止。
注意2 :我很确定这不是特定于NodaTime的。 这是关于别的东西...
我的msbuild
开关是:
我现在尝试使用额外的/p:DebugSymbols=false /p:DebugType=None
,但是即使失败,我也想了解并消除“ fastlink”错误。
在我的情况下,将DebugType
显式设置为pdbonly
是DebugType
,但是不确定是否需要可移植的调试符号,因此这可能不是您的选择。
<PropertyGroup>
<DebugType>pdbonly</DebugType>
</PropertyGroup>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.