如何打包HTML/Metro应用程序以在Visual Studio 2012外部部署

如何打包HTML/Metro应用程序以在Visual Studio 2012外部部署,html,microsoft-metro,visual-studio-2012,winjs,Html,Microsoft Metro,Visual Studio 2012,Winjs,有人知道如何打包应用程序,以便在VisualStudio之外部署HTML/JS Metro应用程序吗。我不断听到对商店菜单项的引用,但我使用的是Visual Studio 2012 RC Ultimate Edition,并且没有这样的顶级菜单项 我还尝试将命令行工具与给定的清单文件(在构建中自动构建的清单文件)一起使用,以创建appx文件,但在打包结束时会收到一些深奥的错误消息 更新:命令行错误消息 MakeAppx pack /d .\Release\AppX /p generic.App

有人知道如何打包应用程序,以便在VisualStudio之外部署HTML/JS Metro应用程序吗。我不断听到对商店菜单项的引用,但我使用的是Visual Studio 2012 RC Ultimate Edition,并且没有这样的顶级菜单项

我还尝试将命令行工具与给定的清单文件(在构建中自动构建的清单文件)一起使用,以创建appx文件,但在打包结束时会收到一些深奥的错误消息

更新:命令行错误消息

MakeAppx pack /d  .\Release\AppX /p generic.AppX
The package path (/p) parameter is: "generic.AppX"
The content directory (/d) parameter is: ".\Release\AppX"
Enumerating files from directory ".\Release\AppX"
Packing 52 file(s) in ".\Release\AppX" (content directory) to "generic.AppX" (p    ackage name).
Using ".\Release\AppX\AppxManifest.xml" as the manifest for the package.
Adding ".\Release\AppX\images\splashscreen.png" to the package as a payload file.  Its path in the package is "images\splashscreen.png".
Adding ".\Release\AppX\images\logo.png" to the package as a payload file.  Its path in the package is "images\logo.png".
Adding ".\Release\AppX\images\smalllogo.png" to the package as a payload file.  Its path in the package is "images\smalllogo.png".
Adding ".\Release\AppX\images\storelogo.png" to the package as a payload file.  Its path in the package is "images\storelogo.png".
.........{Cut for brevity's sake}.........
MakeAppx : error: Package creation failed.
MakeAppx : error: 0x8007007b - The filename, directory name, or volume label syntax is incorrect.
更新:有点想通了

我不知道发生了什么,但我创建了一个空白的XAML/C Metro应用程序。在项目上单击鼠标右键时,将获得一个存储选项。它仍然没有出现在我的HTML/JS Metro应用程序项目中,所以我创建了一个干净的HTML/JS Metro项目……它就在那里,一个商店选项


因此,我再次打开了当前的非工作项目,右键单击该项目,它出现了,存储选项。我不知道这是否是一个2012年的RC错误,但我会把这个问题留在这里,以防其他人遇到这个问题

它在项目菜单下


就像你说的,这可能是一只虫子。VS2012目前仍然存在问题。

我也遇到了这个问题,不知道原因,但文件映射对我来说很有效,请尝试调用:

makeappx pack /v /o /f mappingfile.txt /p yourapp.appx
mappingfile.txt的内容:

[Files]
"App.xaml"                                                  "App.xaml"
"AppxManifest.xml"                                          "AppxManifest.xml"
"folder\file.ext"                                           "folder\file.ext"
"***.***"                                                   "***.***"