Errors Creating App Package (UWP, Appx) - fatal error CMF1106: failed to open input PDB file for reading

只谈情不闲聊 提交于 2019-12-10 17:18:52

问题


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

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


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)


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.

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

My msbuild switches are:

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

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.


回答1:


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>


来源:https://stackoverflow.com/questions/52031702/errors-creating-app-package-uwp-appx-fatal-error-cmf1106-failed-to-open-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!