Is it possible to create a package for the store via command line with makeappx.exe?
-
quinta-feira, 21 de junho de 2012 08:55
Can makeappx.exe create Store packages? I do not see an option to hand in the Store credentials.
Or is there a msbuild target that allows to create store packages (Publish target)?
Todas as Respostas
-
quinta-feira, 21 de junho de 2012 16:08Moderador
Hi Phil,
You can use the command but you need to have your app manifest ready before you do so. I am not sure if you are trying to create the app manifest through command line. The following site gives you a list of commands as well as a list of syntax. Have a look at this site and let us know if you are looking for something more specific. http://msdn.microsoft.com/en-us/library/hh446767.aspx I hope this helps!
Thanks,
-
quinta-feira, 21 de junho de 2012 16:19Don't I also need a valid storeKey.pfx and a Package.StoreAssociation.xml file? How to I get them (or generate them)? I think the key is downloaded from the Store and is signed by MS?
-
quinta-feira, 21 de junho de 2012 19:29Moderador
Phil,
You do need a valid Storekey and this file is created when you package the app in Visual Studio. Please take a look at the page on Signing a package. The package.storeassociation.xml will also be created in your project when you build the app for release to the Store. Look in your project folder and you should see it in there.
The important thing to keep in mind is that the Publisher attribute must match the subject field of the .pfx file. If these don’t match then they need to be updated before submitting. Here is more information on Identity.
You will be able to use the Manifest Designer to create your package double-clicking the package.appxmanifest file in Solution Explorer and selecting the Packaging tab. I hope this is helpful.
Thanks,
Jesse
- Sugerido como Resposta Jesse_FMicrosoft Contingent Staff, Moderator quinta-feira, 21 de junho de 2012 19:30
-
quinta-feira, 21 de junho de 2012 20:01Jesse, so there is no way to request a valid Storekey via commandline? We need a full command line driven process with no UI for our CI server.
-
quinta-feira, 21 de junho de 2012 20:33Moderador
Phil,
As long as your app manifest is set up correctly, you should be just fine. Does this have to be done via command line? Have you considered using Powershell as an alternative to do this?
Thanks,
Jesse
- Editado Jesse_FMicrosoft Contingent Staff, Moderator quinta-feira, 21 de junho de 2012 20:34
-
quinta-feira, 21 de junho de 2012 20:38can you download/request the StoreKey and StoreAssoc.xml via Powershell then this would be a valid option of course.
-
quinta-feira, 21 de junho de 2012 23:09Moderador
Phil,
Both of these files are generated when you create the appx package, as long as you use a valid developer account in Visual Studio. I am including a link to packaging your apps that may help some, as well. http://msdn.microsoft.com/en-us/library/hh446593(v=vs.85)
Thanks,
Jesse
- Editado Jesse_FMicrosoft Contingent Staff, Moderator quinta-feira, 21 de junho de 2012 23:19 content
-
segunda-feira, 17 de setembro de 2012 22:31
To be clear, there is no way to supply your credential and build a package for Store using makeappx.exe on the command line. The only way you can build a store package is by going through the Create App Package wizard in the VS IDE. Alternatively, you can first associate your app with the Store inside Visual Studio, which will cause an update to the package manifest to contain Store information. Then subsequent builds on the command line using MSbuild.exe will produce the package with the correct Store information.
Hope this helps.
- Marcado como Resposta mark_1h terça-feira, 18 de setembro de 2012 17:21
-
terça-feira, 23 de outubro de 2012 13:22
-
terça-feira, 23 de outubro de 2012 13:29
Got it. If you have multiple projects in the solution, you need to have a proper project selected in the solution explorer so that all Store options are available.
PV
-
sexta-feira, 2 de novembro de 2012 09:48
So how does TFS create deploy packages? You cannot seriously expect developers to always create store packages via the IDE? There must be a way to do that in an CI environment.
And speaking of creating of store packages via IDE. Why do we always have to log in again and again for every package build? Ever heard of caching login credentials?
-
domingo, 27 de janeiro de 2013 02:07Agree with Phil, requiring a login every time is a serious buzzkill. After we have associated a project with an app in the store there should be one click publish integration in the IDE AND there should be command line option for those of us with an actual build process.
-
terça-feira, 19 de março de 2013 12:41Any updates on this matter? I more or less want to do the same thing. I have written an app, my costumers will provide me there content and the output I would like is an appx with my customers account which he can submit to the store. All by command line or powershell. Is this possible?

