locked
why msbuild cannot create apppackage ?

    Question

  • hi MSFT,

    I try to make apppackage via msbuild but i am failed.

    command line i used is : msbuild myproject.sln /target:Rebuild /p:configuration=release /p:platform=win32

    can you help explain on this?

    i am wrong or something else?

    Thanks,

    Kevin.

    Tuesday, March 27, 2012 2:23 AM

All replies

  • Please provide the output or error where the first problem is encountered.

    David Lamb

    Tuesday, March 27, 2012 7:44 PM
    Moderator
  • Hi David,

    there is no error occured. I mean it doesn't generate apppackage by default, just like projectname.appx.

    my question is that whether msbuild could create apppackage (but not to use makeappx to create apppackage sperately) just as Candy Chiang said. (http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/4727e1e3-50f1-4835-8c09-131066963474)

    output as following:   ( msbuild myproject.sln /target:Rebuild /p:configuration=release /p:platform=win32 )

    >  Copying file from "Debug\App.xaml" to "c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\App.xaml".
    1>  Copying file from "Debug\CollectionPage.xaml" to "c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\CollectionPage.xaml".
    1>  Copying file from "Debug\SplitPage.xaml" to "c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\SplitPage.xaml".
    1>FinalizeBuildStatus:
    1>  Deleting file "Debug\Application1.unsuccessfulbuild".
    1>  Touching "Debug\Application1.lastbuildstate".
    1>CustomOutputGroupForPackaging:
    1>  (Out) ProcessedXamlFiles: 'c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\CollectionPage.xaml;c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\SplitPage.xaml;c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\App.xaml'
    1>GetPackagingOutputs:
    1>  Application1.BuiltProjectOutputGroup : c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\Application1.exe -> Application1.exe
    1>  Application1.DebugSymbolsProjectOutputGroup : c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\Application1.pdb -> Application1.pdb
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\Logo.png -> Logo.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SmallLogo.png -> SmallLogo.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\StoreLogo.png -> StoreLogo.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SplashScreen.png -> SplashScreen.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\LightGray.png -> LightGray.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\MediumGray.png -> MediumGray.png
    1>  Application1.ContentFilesProjectOutputGroup : c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\DarkGray.png -> DarkGray.png
    1>  Application1.CustomOutputGroupForPackaging : c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\CollectionPage.xaml -> CollectionPage.xaml
    1>  Application1.CustomOutputGroupForPackaging : c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\SplitPage.xaml -> SplitPage.xaml
    1>  Application1.CustomOutputGroupForPackaging : c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\App.xaml -> App.xaml
    1>  Application1.GetResolvedSDKReferences : C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLibs\11.0\ -> 
    1>  Application1.GetProjectArchitecture : x86 -> 
    1>_CreatePriFilesFromPayload:
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\Logo.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SmallLogo.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\StoreLogo.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SplashScreen.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\LightGray.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\MediumGray.png -> Application1
    1>  _ContentToIndex: c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\DarkGray.png -> Application1
    1>  _ContentToIndex: c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\CollectionPage.xaml -> Application1
    1>  _ContentToIndex: c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\SplitPage.xaml -> Application1
    1>  _ContentToIndex: c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\App.xaml -> Application1
    1>_MergePriFiles:
    1>  Creating hard link to copy "Debug\Application1.pri" to "c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\resources.pri".
    1>_GenerateCurrentProjectAppxManifest:
    1>  Package.appxmanifest -> c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\AppxManifest.xml
    1>_GenerateAppxPackageRecipe:
    1>  Manifest: c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\AppxManifest.xml
    1>  Payload: Application1.exe from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\Application1.exe
    1>  Payload: Application1.pdb from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\Application1.pdb
    1>  Payload: Logo.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\Logo.png
    1>  Payload: SmallLogo.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SmallLogo.png
    1>  Payload: StoreLogo.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\StoreLogo.png
    1>  Payload: SplashScreen.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\SplashScreen.png
    1>  Payload: LightGray.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\LightGray.png
    1>  Payload: MediumGray.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\MediumGray.png
    1>  Payload: DarkGray.png from c:\Users\intel\documents\visual studio 11\Projects\Application1\Application1\DarkGray.png
    1>  Payload: CollectionPage.xaml from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\CollectionPage.xaml
    1>  Payload: SplitPage.xaml from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\SplitPage.xaml
    1>  Payload: App.xaml from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\App.xaml
    1>  Payload: resources.pri from c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\resources.pri
    1>  SDK reference:  from C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLibs\11.0\
    1>  Application1 -> c:\users\intel\documents\visual studio 11\Projects\Application1\Debug\Application1\Application1.build.appxrecipe
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:13.66
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

    Avatar of Candy Chiang

    Candy

    Wednesday, March 28, 2012 1:42 AM
  • @Kevin - your command is a build-only command.  Building doesn't produce an appx package it only compiles the solution.  If you want to also have a package:

    msbuild myproject.sln /target:Publish /p:configuration=release /p:platform=win32

    using the Publish target is what you want.

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Wednesday, March 28, 2012 3:50 AM
  • thanks a lot Tim. It is very useful for me.

    Thursday, March 29, 2012 8:02 AM