创建应用程序包时出错(UWP,Appx)-致命错误CMF1106:无法打开输入PDB文件进行读取 [英] Errors Creating App Package (UWP, Appx) - fatal error CMF1106: failed to open input PDB file for reading

查看:397
本文介绍了创建应用程序包时出错(UWP,Appx)-致命错误CMF1106:无法打开输入PDB文件进行读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为UWP Win 10应用程序创建应用程序包时出现错误.

I'm getting errors when Creating App Packages for a UWP Win 10 application.

在我的机器上,错误是:

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

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

The pdb file exists in the mentioned directory: C:\Users\Developer\.nuget\packages\nodatime\2.4.0\lib\netstandard2.0

在托管的VSTS上,错误消息甚至更加含糊:

On a hosted VSTS build the error message is even more cryptic:

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)

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构建中,该步骤失败了,因为它在日志中检测到错误并停止.

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.

注释2 :我很确定这不是不是 NodaTime特定的.这是关于别的东西...

Note 2: I'm pretty sure this is not NodaTime specific. This is about something else...

我的msbuild开关是:

  • /p:AppxBundlePlatforms ="$(BuildPlatform)"
  • /p:AppxPackageDir ="$(Build.ArtifactStagingDirectory)\ AppxPackages \"
  • /p:AppxBundle =从不
  • /p:UapAppxPackageBuildMode = StoreUpload

我现在正在尝试使用其他/p:DebugSymbols=false /p:DebugType=None,但是即使失败,我也想理解并消除"fastlink"错误.

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.

推荐答案

在我的情况下,将DebugType显式设置为pdbonly是可行的,但是不确定是否需要可移植的调试符号,因此这可能不是一个选择.为你.

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.

<PropertyGroup>
  <DebugType>pdbonly</DebugType>
</PropertyGroup>

这篇关于创建应用程序包时出错(UWP,Appx)-致命错误CMF1106:无法打开输入PDB文件进行读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆