【问题标题】:the file is not a valid app package because it is missing a manifest or block map该文件不是有效的应用程序包,因为它缺少清单或块图
【发布时间】:2013-07-01 17:01:19
【问题描述】:

当我尝试从我的 WPF 应用程序创建一个 Windows 商店包时,我看到这个错误: “该文件不是有效的应用程序包,因为它缺少清单或块映射”

我已经创建了一个 AppxManifest.xml 文件,但它仍然不起作用。

这是我如何使用 Makeappx.exe 和控制台输出:

MakeAppx.exe pack /d .\ /p StoreAppTest1.appx

Microsoft (R) MakeAppx Tool version 1.0.0.0

Copyright (C) 2012 Microsoft.  All rights reserved.

The package path (/p) parameter is: "StoreAppTest1.appx"

The content directory (/d) parameter is: ".\"

Enumerating files from directory ".\"

Packing 4 file(s) in ".\" (content directory) to "StoreAppTesame).

MakeAppx : error: The package must contain a manifest.

MakeAppx : error: Package creation failed.

MakeAppx : error: 0x80080203 - The file is not a valid app pa
 missing a manifest or block map.

MakeAppx : error: The specified package format is not valid.

【问题讨论】:

    标签: c# wpf windows-8 windows-store-apps


    【解决方案1】:

    嗯,首先,AppManifest.xml 文件必须是有效的并且根据这个创建:http://msdn.microsoft.com/library/windows/apps/br211476.aspx,如果你只需要基本的,你可以在这里阅读快速入门:http://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx,但根本问题似乎因为 Windows 应用商店不支持 WPF 应用程序,那里只支持 Windows 应用商店应用程序,所以这是不行的。

    【讨论】:

    • 您需要在windows商店注册为公司。只有公司才能通过 Windows 商店分发桌面应用程序。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-26
    • 1970-01-01
    相关资源
    最近更新 更多