none
Automating builds of Windows CE 7 SDKs RRS feed

  • Question

  • Hello,

    so I'm still working on automating my OS image builds, this time I'm working on building SDKs automatically. I've found BuildSdk.exe, which I can throw a .pbxml and an .sdkcfg at. BuildSdk.exe generates then the MSI package.

    Now, these SDKs will be built on a build server, which in our setup is also assigning version numbers. But the only way to change the version number of an SDK seems to be through the Platform Builder IDE. I can't find any command line tool that could update or at least generate an sdkcfg.

    Am I missing something here, or do I really have to generate sdkcfg templates manually in the IDE and then patch version numbers and stuff on the build server, for instance using an XSLT transform?

    Cheers
    Kartoffelsalat.

    Thursday, March 24, 2011 7:16 PM

Answers

  • There are no command line tools for creating the sdkcfg file (that I've ever seen at least) as the contents of the sdkcfg file is based on the SDK properties specified in the SDK property pages within PB.  However, the files are very simple XML files, so just about any script language could be used to create a new sdkcfg file or modify an existing one to set any of the properties, including the version number.


    Tom Gensel PTG Systems, LLC
    http://www.ptgsystems.com
    Thursday, March 24, 2011 11:16 PM

All replies

  • There are no command line tools for creating the sdkcfg file (that I've ever seen at least) as the contents of the sdkcfg file is based on the SDK properties specified in the SDK property pages within PB.  However, the files are very simple XML files, so just about any script language could be used to create a new sdkcfg file or modify an existing one to set any of the properties, including the version number.


    Tom Gensel PTG Systems, LLC
    http://www.ptgsystems.com
    Thursday, March 24, 2011 11:16 PM
  • Potato salad,
     
    You can easily do this with a simple powershell script. I've got one
    lying around here somewhere... Let me know if you want it and I'll see
    if I can dig it up...
     

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.
    Friday, March 25, 2011 1:16 AM
    Moderator
  • So that answers the question: I do have to patch the sdkcfg's myself.

    Will then go the XSLT route: I'm already using MSBuild to glue everything together, and whenever I needed to fix up XML documents so far, MSBuild's XslTransform task did the job pretty well. And I've never been particularly fond of powershell, anyway.

    Thanks all.

    Friday, March 25, 2011 7:47 AM