Including thousands of asset-data-files in directories and subdirectories and subdirectories... RRS feed

  • Question

  • Oh noes, another problem...

    For my project I have a lot of asset-files (~4000) (gfx, sounds, texts, databases, script-files...) 
    organized in a gazillion directories and subdirectories. 
    Now is there a convenient way to add these in the project ?

    Visual Studio still doesnt support drap and drop actions with whole folder structures.
    So i had to manually add all asset-files into the project, which kinda sucks ofc.

    My local testing solution:
    I use a post build process to robocopy my _data-directory  to the AppX directory.
    This works fine when developing local. Also the deploy solution - process seems to copy these
    files afterwards - so testing locally is fine.

    Creating the app package is a different story
    But when i create the app package via Project->Store->Create App Package... the 
    package gets generated without the contents of my _data-directory.

    Therefore i have 2 questions:

    1. Is there a proper (best practice) way to import whole asset-directory-structures into 
    a Visual Studio 2012 project ? OR IF NOT SO:

    2. Is there a way to 'inject' these assets into the packaging process ?

    Kind regs,

    Roman Pfneudl CEO - vertex4 entertainment ltd.

    Monday, June 11, 2012 4:44 PM

All replies

  • Is it necessary to create so many folder, you can use a long file name instead of it.


    Tuesday, June 12, 2012 7:39 AM
  • Hi Luke, 

    yeah, i actually thought of that as a workaround if everything else fails. 
    Its just: These are so basic things that should actually work. 
    Its quite strange - Visual Studio has never supported that kind of importing
    operation - there were always macro workarounds necessary to make this
    happen. But now beginning with VS2011 macros aren't supported anymore.

    *sigh* - well, dont get me wrong - im SUPERIMPRESSED with Visual Studio
    2012 and all the new features & tools they provide now. ... but still... :)

    Roman Pfneudl CEO - vertex4 entertainment ltd.

    Tuesday, June 12, 2012 9:44 AM