代码之家  ›  专栏  ›  技术社区  ›  tmaj

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

  •  4
  • tmaj  · 技术社区  · 8 年前

    在我的机器上,错误是:

    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

    :我很确定这是 不 具体时间。这是关于别的。。。

    我的 msbuild 开关包括:

    • /p:AppxBundlePlatforms=“$(构建平台)”
    • /p:AppxPackageDir=“$(Build.artifactstagindirectory)\AppxPackages\”
    • /p:uapappxpxpxppackagebuildmode=存储上载

    我现在试着用额外的 /p:DebugSymbols=false /p:DebugType=None ,但即使失败,我也希望理解并消除“fastlink”错误。

    1 回复  |  直到 8 年前
        1
  •  1
  •   Patrik Svensson Martin Ender    7 年前

    显式设置 DebugType 到 pdbonly

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