[英]Errors Creating App Package (UWP, Appx) - fatal error CMF1106: failed to open input PDB file for reading
I'm getting errors when Creating App Packages for a UWP Win 10 application. 为UWP Win 10应用程序创建应用程序包时出现错误。
On my machine the error is: 在我的机器上,错误是:
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
The pdb file exists in the mentioned directory: C:\\Users\\Developer\\.nuget\\packages\\nodatime\\2.4.0\\lib\\netstandard2.0
pdb文件位于上述目录中:
C:\\Users\\Developer\\.nuget\\packages\\nodatime\\2.4.0\\lib\\netstandard2.0
On a hosted VSTS build the error message is even more cryptic: 在托管的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)
Note 1 : On my machine the package is actaully successfully created but on the VSTS build the step fails as it detects the error in logs and stops. 注意1 :在我的机器上,该软件包实际上已成功创建,但是在VSTS上,该步骤失败,因为它在日志中检测到错误并停止。
Note 2 : I'm pretty sure this is not NodaTime specific. 注意2 :我很确定这不是特定于NodaTime的。 This is about something else...
这是关于别的东西...
My msbuild
switches are: 我的
msbuild
开关是:
I am now trying with extra /p:DebugSymbols=false /p:DebugType=None
, but even if it fails, I would like to understand and eliminate the 'fastlink' errors. 我现在尝试使用额外的
/p:DebugSymbols=false /p:DebugType=None
,但是即使失败,我也想了解并消除“ fastlink”错误。
Explicitly setting DebugType
to pdbonly
worked in my case, but not sure if you need portable debug symbols or not, so this might not be an option for you. 在我的情况下,将
DebugType
显式设置为pdbonly
是DebugType
,但是不确定是否需要可移植的调试符号,因此这可能不是您的选择。
<PropertyGroup>
<DebugType>pdbonly</DebugType>
</PropertyGroup>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.