从Visual Studio 2015中发布C#项目无效清单

时间:2017-01-19 11:38:18

标签: c# visual-studio deployment clickonce monogame

我的项目在Visual Studio中运行良好,但是当我发布它并尝试在同一台开发计算机上运行setup.exe时,我收到错误:

    + Exception reading manifest from file:///C:/Game/Application%20Files/F1_1_0_0_9/F1.exe.manifest: the manifest may not be valid or the file could not be opened.
    + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed: 
        -HRESULT:   0x8007001f
         Start line:    0
         Start column:  0
         Host file:     
    + A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)

我已尝试禁用ClickOnce清单的签名,这只会给我一个不同的错误。

1 个答案:

答案 0 :(得分:2)

在尝试了不同的方式签署清单之后,使用不同版本的.NET等删除/添加dpi-aware标志时,我设法通过从我的解决方案中删除清单文件来解决它。惊人的。