简体   繁体   English

创建应用程序包时出错(UWP,Appx)-致命错误CMF1106:无法打开输入PDB文件进行读取

[英]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开关是:

  • /p:AppxBundlePlatforms="$(BuildPlatform)" / p:AppxBundlePlatforms =“ $(BuildPlatform)”
  • /p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\\AppxPackages\\" / p:AppxPackageDir =“ $(Build.ArtifactStagingDirectory)\\ AppxPackages \\”
  • /p:AppxBundle=Never / p:AppxBundle =从不
  • /p:UapAppxPackageBuildMode=StoreUpload / 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. 我现在尝试使用额外的/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显式设置为pdbonlyDebugType ,但是不确定是否需要可移植的调试符号,因此这可能不是您的选择。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用MSBuild在UWP应用中将目标生成的内容部署到AppX包中 - How to deploy Content generated in a Target to AppX package in a UWP app with MSBuild UWP .appx 文件命名 - UWP .appx file naming Visual Studio 不会将 .pdb 文件复制到 Appx 文件夹中 - Visual studio doesn't copy the .pdb file into Appx folder Subversion构建:致命错误LNK1181:无法打开输入文件&#39;zlib.lib&#39; - Subversion Build: fatal error LNK1181: cannot open input file 'zlib.lib' Windows应用商店的TFSBuild失败,错误APPX0105:无法导入密钥文件 - TFSBuild for Windows Store App Fails with error APPX0105: Cannot import the key file 如何打开appx或appxupload文件? - How do you open an appx or appxupload file? UWP 项目在 GitHub Actions 上失败,因为证书无效 APPX0107 - UWP project failed on GitHub Actions because certificate is invalid APPX0107 MSBuild因APPX0002错误而失败:任务&#39;GenerateAppxPackageRecipe&#39;失败。 值不能为空 - MSBuild fails due to error APPX0002: Task 'GenerateAppxPackageRecipe' failed. Value cannot be null 为什么我的发布构建失败并出现错误 APPX0002:任务 'ValidateAppxManifest' 失败? - Why does my release build fail with error APPX0002: Task 'ValidateAppxManifest' failed? 错误MCG0004:InternalAssert断言在发布模式下构建UWP应用程序时失败 - Error MCG0004:InternalAssert Assert Failed when building UWP app in release mode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM